I've never tried to work with assembly features before, but I have a need now. Does anyone have a bit of code to get me started. Haven't figured out how to begin the profile yet. Thanks in advance.
Ok, following another thread I've managed to get the profile drawn. There seems, however, to be a bug in the setaxisofrevolution method.
SolidEdgeFrameworkSupport.Line2d oAxis = null;
SolidEdgePart.Profile oProfile = null;
SolidEdgeAssembly.Layouts oAssyLayouts = null;
SolidEdgeAssembly.Layout oAssyLayout = null;
SolidEdgeAssembly.AssemblyDocument oAssyDoc = null;
object status = 0;
oAssyLayouts = oAssyDoc.Layouts;
oAssyLayout = oAssyLayouts.Add(oAssyRefPlanes.Item(2),true, out status);
oProfile = (SolidEdgePart.Profile)oAssyLayout.Profile;
// set the axis of revolution
oAxis = oLines2d.AddBy2Points(-.0254, 0, .0254, 0);
oProfile.SetAxisOfRevolution(oAxis); // this is where it errors out.
I believe it to be a bug in the API. Can anyone confirm this?