Solidworks toolbox adding custom parts
![solidworks toolbox adding custom parts solidworks toolbox adding custom parts](https://michaellorddotme.files.wordpress.com/2016/05/part.png)
![solidworks toolbox adding custom parts solidworks toolbox adding custom parts](http://support.ptc.com/help/windchill/whc/whc_en/Windchill_Help_Center/images/WWGMGenSWToolMap14.png)
Get6 ( prpName, cached, prpVal, prpResVal, wasResolved, isLinked ) Dim prpVal As String Dim prpResVal As String Dim wasResolved As Boolean Dim isLinked As Boolean Dim res As Long res = swCustPrpMgr. Note, you might need to use older version of this method, such as ::Get5, ::Get4 depending on the target version of SOLIDWORKS.ĭim swCustPrpMgr As SldWorks. Value and additional information of a specific property can be retrieved by property name via ICustomPropertyManager::Get6 SOLIDWORKS API method. There are 2 general ways of reading the values of custom properties. It is also possible to read configuration specific cut-list properties using Document Manager API.
SOLIDWORKS TOOLBOX ADDING CUSTOM PARTS CODE
Refer Read Component Cut-List Properties macro for code example. This method doesn’t require to activate the configuration of the component’s model to resolve the configuration specific cut-list properties. It is however possible to read the configuration specific cut-list properties from the referenced configuration of the component in the assembly by retrieving assembly context pointer to the cut-list feature. If it is required to retrieved the configuration specific values of cut-list property, manually activate the configuration via IModelDoc2::ShowConfiguration2 method. length could be resolved to different values in different configurations) SOLIDWORKS API doesn’t recognize this functionality and only provides values of the active configuration of the part document. CustomPropertyManagerĪlthough cut-lists can contain the configuration specific properties (e.g. CustomPropertyManager Set swCustPrpMgr = swCutListFeat. In order to connect to file specific (general) custom properties, it is required to call the IModelDocExtension::CustomPropertyManager property and pass an empty string as a property parameter.ĭim swCutListFeat As SldWorks. The methods of this interface behave in the same way for all of the above group of properties and the only difference in a way of retrieving the instance of this interface.