cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PowerDesigner 16.5 UpdateModelFromDatabase function in VBscript

Former Member
0 Likes
1,570

Hi,

I am trying to write a script that compares two physical data models. I already have a PDM on my repository and I want to compare it to a reverse-engineered PDM which is the DB production version of the same model. The idea is to update the repository version when the production version changes. I was wondering if there was a function in VBScript that was doing the same thing (or almost) as the "UpdateModelFromDatabase" option on the PowerDesigner GUI. I also noticed the "Compare" function in VBScript, which could potentially help me. Unfortunately, there is not a lot of documentation around and it is hard to know how to include the differents parameters to correctly use that function.

I am seeking the attention of someone who ever tried to code something like I'm describing. Thanks a lot in advance for your precious help.

Antoine

View Entire Topic
former_member200945
Contributor
0 Likes

YES.

For model object, there is a function called UpdateFromRepository.

In your Powerdesigner, go to Help->Metamodel Objects Help. In Index tab, Search for BaseModel.

Study the fuction's signature.

This is the code sample: ( Use default parameters in UpdateFromRepository)

set model=ActiveModel

model.updateFromRepository()