on ‎2017 Jul 24 6:38 PM - last edited on ‎2024 Feb 03 10:28 PM by postmig_api_4
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
Request clarification before answering.
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()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.