Property Value (text expression) is a static value or the formula of the property.This method allows to extract comprehensive information about the property.
Unresolved configuration specific custom property
This option would imply performance penalty as model will be regenerated to update properties. Alternatively when cached option is set to False values will be resolved if needed, that means that SOLIDWORKS might activate the configuration to resolved the value which may mark model as dirty. This means that the returned values might not be up-to-date for the properties defined with configuration specific equations, such as weight, dimension value, volume etc. When cached option is used, properties are read from the cached storage. The cached flag of ::GetX method only applies to configurations, as both general and cut-list properties are not configuration specific. 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.
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. Managing Properties Via Document ManagerĪll types of custom properties: file specific (general), configuration specific or cut-lists can be managed in unified way via ICustomPropertyManager interface.In this blog article I will go through various applications and code example for managing custom properties using SOLIDWORKS API. This includes but not limited to large applications such as PDM systems, ERP integrations, change management, quality control and small automation macros such as properties sorting, copying etc. Despite there are only 4 basic APIs available via ICustomPropertyManager interface for reading, writing, modifying and deleting properties, there is endless number of possible application could be written based on those APIs. In case you have doubts please contact this person or add him to review your PR.Custom properties automation is one of the most demanding parts of SOLIDWORKS API. Want to contribute? here is the source code Table of Contents Linkedin-quiz-questions If you want to meet each other or discuss quiz related problems join the Discord chat.That will help anyone to better learn concepts they might not have a great understanding about.
Whatever is your goal - you are always welcome here! Feel free to use online grammar checker when you contribute! PLEASE ?Īdd explanation ( or reference link) to your answers. Or possibly you would like to create your first pull request and be added as a contributor. This repository is for those looking for answers to the LinkedIn assessment quiz questions or willing to help others by contributing to the tests. Linkedin Quiz Answers, Skill Assessments Test Us mentioned on Medium YouTube