I'm working on a script to extract source to target data from powerdesigner 16. I have a table that is sourced from multiple mappings in powerdesigner MAPPING_1, MAPPING_2, ETC. I can't figure out how to set the default mapping with vba code. I'm currently access the mappings with the code below. It will access the default mapping that was active when I last saved my data model. If anyone has insight on how to do this I would be very greatful.
Thanks
'
' get the table
' Dim mytable, col, cm
mytable = 'CUSTOMER_STAGING'
Dim obj As PdCommon.IdentifiedObject
Set obj = baseModel.FindChildByCode(mytable, cls_Table)
For Each col In obj.Columns
For Each cm In col.Mappings
Next
next