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.
SolidworksApi macros