SOLIDWORKS PDM : CONDITIONS DE TRANSITION : tester l'existance d'une propriété personnalisée

Bonjour,

dans une condition de transition, je teste qu'une propriété est vide par le test suivant :

- MA_PROP :: comparer le texte :: !=_%

Or j'ai constaté que si la propriété n'existe pas, ce test renvoie FAUX.

D'où ma question : Comment tester l'existence d'une propriété personnalisée ?

Je n'ai pas PDM, et après recherche rien trouvé de correspondant sur internet.

As-tu posé la question à la hotline, si tu y as accès bien sûr?

1 « J'aime »

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