Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Create sketch at intersection of face with sketch plane
jean_marc_giacalone
Member Posts: 2 PRO
I have a solid and need to trace the cross section at various heights, matching the functionality of the Intersection feature in sketch mode.
I have a script to generate parallel planes intersecting the solid at various heights, but I can't find a way to replicate the Intersection functionality on each of these planes.
Here's a test Part https://cad.onshape.com/documents/465690599b6739cfa9025632/w/1324cb723889014e32d90d2b/e/8dd53f1e62b25f885f88f974
Does anyone have any ideas how I may solve this?
I have a script to generate parallel planes intersecting the solid at various heights, but I can't find a way to replicate the Intersection functionality on each of these planes.
Here's a test Part https://cad.onshape.com/documents/465690599b6739cfa9025632/w/1324cb723889014e32d90d2b/e/8dd53f1e62b25f885f88f974
Does anyone have any ideas how I may solve this?
0
Comments
That may be different from what you want in that it actually splits the faces. If you want to leave the body untouched, make a copy of it first (using opPattern), do the splits, use opExtractWires to make a copy of the new edges you want, and then use opDeleteBodies to remove the part copy. Hope this helps.
I know this is an old post but could you show how to use opExtractWires in the example script please?
Its very straight forward. It only takes in a query containing edge entities. It generates wirebodies with those edges. If the edges are not connected, it creates separate bodies, and joined edges create a single body.
example
https://cad.onshape.com/documents/74602c6e3b7235e71375f012/w/9a574195a44b60e84a90c1ca/e/205e50e64ae378e1733e5d46
Custom FeatureScript and Onshape Integrated Applications