Bonjour,
Depuis plusieurs temps maintenant j’essaie de trouver une solution mais en vain.
J’ai un problème pour nommer mes sous composants d’un modèle Dynamic.
On va dire que j’ai créé un meuble avec plusieurs composants, tablette, portes, pied…
Je donne un nom a ce meuble soit meuble #1,
Et j’aimerais que les sous composants aillent chercher ce nom en plus de leur nom a eux.
Tablette 1 - meuble #1 , Porte 1 - meuble 1…
Est-ce que cela est possible ?
Merci de votre aide.
Having a choice in the Name attribute to add the parent Name, can be used in the elements and changed as the furniture is created.
Initially, making Name = “”, allows the instance to display its instance name, can then change this name to suit its situation. Then apply this (copy /paste) to an attribute, choose then to display Name, then if added to a parent: can use =parent!name & " " & name
note the generic use rather than the specific
18mm MDF.skp (63.6 KB)
This can be displayed in OCL with any details.
2 Likes
Thank you very much, this is exactly what I was looking for.