Just migrated to 2017 and I can't get the macro EXPORT MODEL META DATA TO EXCEL VERSION 2.1 to print attribute definitions.
Has anyone else run across this problem and have a solution for fixing?
I was able to successfully run the macro and get attribute definitions. Are you checking the Attribute/Column Definition box in the macro UI?
yes. This macro has work for me up until our last upgrade to
I compared this version with the previous and I find no difference.
I also debugged to the step of printing definition:
line 440 of script
'print attribute definition if option is true If EntOptions(9) = True Then PrintCell attr.Definition, curRow, curCol, 0, 1, clrFore, clrBack, 10, False End If
attr.Definition is empty or spaces
I changed this to get definition from domain and it now works:
If EntOptions(9) = True Then Dim dom As Domain If attr.DomainId <> 0 Then
Set dom = diag.Domain(attr.DomainId)
PrintCell dom2.Definition, curRow, curCol, 0, 1, clrFore, clrBack, 10, False End If End If