Skip to Content
Jul 13, 2018 at 10:41 AM

Filling extended attribute in PDM column by copying from CDM

85 Views Last edit Jul 13, 2018 at 10:42 AM 2 rev

i have created an extended attribute for a column "Name" in CDM and marked it as "True". I have created the same extended attribute for column "Name" in PDM. I want to write a script which would copy the extended attribute value from CDM and set it in PDM. Following is the code I have written, but it's not working; can someone please help:

for each Tabl in obj.Tables

for each clm in Tabl.Columns

set ColumnInCDM = CDM.FindChildByName(clm.Name,cls_column)

call clm.setExtendedAttribute("Name", ColumnInCDM.GetExtendedAttribute("Name"))