Chapter 9 Accessing objects using VBScript
You create a model using the CreateModel (modelkind As Long, filename As String = "", flags As Long =omf_Default) As BaseObject together with the cls_Model constant prefixed with the Module name to identify the type of model you want to create.
'Create a CDM model
CreateModel (PdCDM.cls_Model)
Note that additional arguments may be specified in the filename parameter depending on the type of model (Language, DBMS, Copy, Diagram). The diagram argument uses the public name, but the localized name (the one in the Target selection dialog box) is also accepted. However, it is not recommended to use the localized name as your script will only work for the localized version of PowerDesigner.
Copyright (C) 2005. Sybase Inc. All rights reserved. |