CadQuery / cadquery

A python parametric CAD scripting framework based on OCCT
https://cadquery.readthedocs.io
Other
3.27k stars 295 forks source link

About the potential to enhance the assembly tree structure? #1691

Open huskier opened 1 month ago

huskier commented 1 month ago

The attached image is the screenshot of the door STEP model opened in FreeCAD, and the assembly tree structure is on the left. Is it possible to just keep the elements in the green rectangle box? To me, "door001", "Origin011", "Origin010", "left_part", "Origin001", "right_part", etc. are just duplications, and I think they are unnecessary. door_asm_tree_small

adam-urbanczyk commented 1 month ago

Is this based on CQ master, I remember there were some changes related to this. If so, would you know how FreeCAD maps elements from the XCAF structure?

huskier commented 1 month ago

Yes, this is based on the latest CQ master (The "dfba42f" commit). We've also tried to open the STEP file in OnShape, and here is the result. We still just want to keep the elements in the green rectangle box. We've also tried to open the STEP file in SolidWorks, and the tree structure is more complex, not as expected as mentioned above. By "How does FreeCAD map elements from the XCAF structure", We're approaching the FreeCAD community, and no response right now. door_asm_tree_in_OnShape

huskier commented 1 month ago

The following reply is from the FreeCAD community. So, we can manipulate the assemble tree structure. For how-to, we may need to investigate it in details.

Re: About the STEP model's tree structure Post by LHC » Mon Oct 28, 2024 8:47 pm

The little blue box parts are the ones you want to keep. You can click on the other stuff and hit delete button, and do NOT delete the contents when it asks you. The benefit of the top level "part container" (the yellow box) is that you can move the entire group of items together as a unit, otherwise you will quickly find that they are all just positioned in space and can be moved around so they are not in the right place relative to each other. Here's a pro-tip - make a copy of the file - then start butchering the copy - don't ask me how I learned this :lol: