Hello
In a transition condition, I test that a property is empty by the following test:
- MA_PROP :: compare text :: !=_%
However, I found that if the property does not exist, this test returns FALSE.
Hence my question: How do I test for the existence of a custom property?
I don't have PDM, and after searching nothing found a match on the internet.
Have you asked the hotline, if you have access to it of course?
1 Like
The ConfigurationManager object has a GetNames property that returns an array of names of all custom properties. You can check if the name of the property you are comparing exists in that array. If it exists, then you can go ahead and compare the values.
If you need I can provide skeleton VBA code.
Here is a link to the help topic.
GetNames Method (ICustomPropertyManager) - 2023 - SOLIDWORKS API Help