This example demonstrates how to insert an existing library feature into a model and locate it by updating its references afterward. First the library feature is created and then the feature has to be accessed and updated with the selected references. The part document and library feature were created in sw2009_SP5 and the macro is in VBA.
In addition, an example is attached that sets the library feature references of a library feature on insertion\creation, using pre-selection of features and marks. (See LibFeatPart with Refs On CreateFeature.zip). The marks should follow the order retrieved from ILibraryFeatureData::GetReferences().
|- required for full access.|
- Looking for more API Examples?
Copyright © 2012 Dassault Systèmes SolidWorks Corp. All rights reserved.
Do not distribute or reproduce without the written consent of Dassault Systèmes SolidWorks Corp.