3D Cross section view of an assembly?

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
JamesLiu
Posts: 26
Joined: Sat Apr 28, 2018 6:23 am

3D Cross section view of an assembly?

Post by JamesLiu »

This is probably a silly question. I cannot figure out how to create a 3D cross section view in Assembly4 and A2Plus.

An example of 3D cross section view is as the following,

Image
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: 3D Cross section view of an assembly?

Post by vocx »

JamesLiu wrote: Sat Jul 11, 2020 2:45 pm This is probably a silly question. I cannot figure out how to create a 3D cross section view in Assembly4 and A2Plus.
...
There is no way to do this exactly. You can define a clipping plane, but that doesn't keep the faces.

Std_ToggleClipPlane

The easiest way to simulate it is to add a big cube, and just cut the assembly with the cube.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
JamesLiu
Posts: 26
Joined: Sat Apr 28, 2018 6:23 am

Re: 3D Cross section view of an assembly?

Post by JamesLiu »

vocx wrote: Sun Jul 12, 2020 12:50 am
There is no way to do this exactly. You can define a clipping plane, but that doesn't keep the faces.

Std_ToggleClipPlane

It's pity that clipping plane loses the faces. It would be great to have an option to keep the face on clipping plane.
The easiest way to simulate it is to add a big cube, and just cut the assembly with the cube.

The boolean 'Cut' operation of Part WB works only between two shapes, but not on the assembly. I have to create the cut parts one by one, it is workable but tedious.

When using the Cut operation of PartDesign WB in Assembly4 model, it complains "PropertyLinkList does not support external links".
User avatar
fosselius
Posts: 381
Joined: Sat Apr 23, 2016 10:03 am
Contact:

Re: 3D Cross section view of an assembly?

Post by fosselius »

maybe a quick-hack, can you export the assembly to a mesh file (ex. step or stl) then do the boolean cut on the mesh?
JamesLiu
Posts: 26
Joined: Sat Apr 28, 2018 6:23 am

Re: 3D Cross section view of an assembly?

Post by JamesLiu »

fosselius wrote: Sun Jul 12, 2020 8:47 am maybe a quick-hack, can you export the assembly to a mesh file (ex. step or stl) then do the boolean cut on the mesh?
Nope, the Linked parts of Assembly4 model cannot be exported into STL mesh or STEP. :cry:
freecad-heini-1
Veteran
Posts: 7791
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: 3D Cross section view of an assembly?

Post by freecad-heini-1 »

JamesLiu wrote: Sat Jul 11, 2020 2:45 pm This is probably a silly question. I cannot figure out how to create a 3D cross section view in Assembly4 and A2Plus.

An example of 3D cross section view is as the following,

Image
Hi James,
in the German section of the forum there was a thread on the topic, see:
https://forum.freecadweb.org/viewtopic. ... 91#p188991
https://forum.freecadweb.org/viewtopic. ... 22#p189722
https://forum.freecadweb.org/viewtopic. ... 26#p192726
Best regards
Wilfried
JamesLiu
Posts: 26
Joined: Sat Apr 28, 2018 6:23 am

Re: 3D Cross section view of an assembly?

Post by JamesLiu »

freecad-heini-1 wrote: Sun Jul 12, 2020 5:33 pm Hi James,
in the German section of the forum there was a thread on the topic, see:
https://forum.freecadweb.org/viewtopic. ... 91#p188991
https://forum.freecadweb.org/viewtopic. ... 22#p189722
https://forum.freecadweb.org/viewtopic. ... 26#p192726
Best regards
Wilfried
Vielen Dank, Wilfried! The Cross-Section Macro works on part model smoothly, but fails on an Assembly4 model due to <class 'AttributeError'>: 'App.Part' object has no attribute 'Shape'.
Post Reply