How to create a feature in a part that is being edited in the context of an assembly

November 24, 2009
Usually it is more convenient to create or modify some geometry of a component directly in the context of an assembly.

The SolidWorks API provides the proper solution. Using the AssemblyDoc::EditPart2 method we set the selected component into edit mode and are able to use regular IFeatureManager interface's APIs for generating the geometry.

To exit the "Edit Part" mode use the AssemblyDoc::EditAssembly method.

The following video demonstrates a general technique of working in context of assembly.

You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.

AttachmentSize
amcb_api_tip_01.flv6.09 MB