Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Hii @WCrihfield  I am able to get the edit option from command manager.But how can I get the control points or the faces from that freeform face. Here attaching the code.

 

public void freeFormSurface()
{
PartDocument oDoc = (PartDocument)mApplication.ActiveDocument;
SurfaceBody oBody = oDoc.ComponentDefinition.SurfaceBodies[1] as SurfaceBody;
ObjectCollection oFaces = mApplication.TransientObjects.CreateObjectCollection();

oFaces.Add(oBody.Faces[7]);
ControlDefinitions oCDs = mApplication.CommandManager.ControlDefinitions;
ControlDefinition oCD1 = oCDs["TSplineConvertToTSplineCmd"];
ControlDefinition oCD2 = oCDs["AppContextual_OKCmd"];

oDoc.SelectSet.SelectMultiple(oFaces);
oCD1.Execute();
oCD2.Execute();


ControlDefinition oCD3 = oCDs["FinishTSplineCmd"];
oCD3.Execute();

PartComponentDefinition compDef = oDoc.ComponentDefinition;

FreeformFeature ff = compDef.Features.FreeformFeatures[1];

 

ff.IsInEditMode= true;

}

 

supriya_chaugule_0-1687168061718.png

How do i get this control points from API?