2 Replies Latest reply on Mar 6, 2013 6:50 PM by Will Whiteneck

    Adding a planar surface to an assembly

    Will Whiteneck

      Hi All,

      I'm trying to define a planar surface in the API and insert it into an assembly model as a virtual component. So far I've managed to insert an empty virtual-component and I've found this example which builds a surface inside of a partdoc. The problem comes when I try to edit the virtual component (so as to build the surface inside). It's virtual, so it doesn't have a partdoc to edit, which means swAssemblyDoc.GetEditTarget() won't work and swAssemblyDoc.EditPart2(...) won't work either. Any advice would be greatly appreciated.