API: Inserting a LibraryFeature With References

Document created by Michael Kozikowski Employee on Feb 18, 2010Last modified by Michael Kozikowski Employee on Jan 2, 2013
Version 4Show Document
  • View in full screen mode

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().


- Subscription Services 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.