- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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;
}
How do i get this control points from API?