AnsweredAssumed Answered

get the name of the sketch of the selected body?

Question asked by Evgenij Polupan on Apr 4, 2020

Please tell me how to get the name of the sketch of the selected body?

 

SelectionMgr swSelMgr;

Edge swEdge = null;

Body2 swBody;

string NameBodi;

 

swSelMgr = swModel.SelectionManager;

swEdge = swSelMgr.GetSelectedObject6(1, -1);

swBody = swEdge.GetBody();

NameBodi = swBody.Name;

Outcomes