on 07-12-2017 2:56 AM
I have the following code below and I have a table with multiple mappings MAPPING_1, MAPPING2, ... I'm trying to figure out how to set the default table mapping or get column mappings for specific mapping.
For Each col In obj.Columns
firsttime = True
For Each cm In col.Mappings
x = cm.Parent.Code
Do you want to run mapping between PDM to PDM?
If so, you can play the following code. The models I used come from Powerdesigner Examples folder.
I open project.cdm and use it to generate project1.pdm.
set TargetModel=openModel("C:\Temp\project1.pdm")
set SourceModel=openModel("C:\Temp\project.pdm")
set dataSource=TargetModel.DataSources.CreateNew()
dataSource.SetNameAndCode "My mapping", "MY_MAPPING"
dataSource.AddSource SourceModel
dataSource.GenerateDefaultMapping()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.