Hello,
I try without result, to list all the extended attributes of any object (and specificity EnterpriseApplication object) in PowerDesigner, in VBScript.
I use PowerAMC V16.5 (french version of Power designer), to EA modeling.
if I know the name of each extended attribute, I can do it, like this :
for each App in M.EnterpriseApplications
App.getExtendedAttribute ("DEf_etendu_Carto_URBA_PAMC_V16.5.ProjetAnneeDebut")
next
where : "DEf_etendu_Carto_URBA_PAMC_V16.5" is my extension file;
and "ProjetAnneeDebut" one of the Extended Attribute
But how know, all the extended attributes ?
I try to do like this :
for each App in M.EnterpriseApplications
for each ExtAttrib In .....
text = ExtAttrib.name & " = " & App.getExtendedAttribute ("DEf_etendu_Carto_URBA_PAMC_V16.5." & ExtAttrib)
next
next
Thank for all help...
André
Request clarification before answering.
Also confirm that the original code works on 16.6 SP7
For Each ModelExtension In ActiveModel.ExtendedModelDefinitions
output "extension : " & ModelExtension.name
For Each ExtAttr in ModelExtension.GetMetaExtensionsForClass(PdEAM.cls_EnterpriseApplication, Cls_ExtendedAttributeTargetItem)
output "Nom de l'attribut : " + ExtAttr.Name
output "Identification de l'objet : " + ExtAttr.ObjectID
output "Nom du modele : " + ExtAttr.Model
Next
Next
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.