Good day to all. Please tell me how to programmatically implement the request to select the edges?
2015 SOLIDWORKS API Help - GetEdges Method (IBody2)
This selects the edges if you get a body object of the part.
Not really.I need to select several specific faces of the part with the mouse and then work with them.
It is necessary to indicate on the parts of chipboard the edge of the side on which the plastic edge is glued, (furniture production)
Without that information in your original post, there was not way for me to know what edges you wanted and how you wanted to select them.
IFace2 also has 2017 SOLIDWORKS API Help - GetEdges Method (IFace2) .
If you pre-select the faces you're talking about, then you can iterate through your currently selected objects with the selection manager (2016 SOLIDWORKS API Help - GetSelectedObject6 Method (ISelectionMgr) )
There are functions to ensure the selections are faces before you cast the entity to a face. From there, you can call face.GetEdges().
Thank. How to pause macro execution until a face is selected?
There are multiple ways of doing this:
Refer Wait for user selection in document using SOLIDWORKS API for more information
Retrieving data ...