Quantcast
Channel: SCN : Popular Discussions - SAP PowerDesigner
Viewing all articles
Browse latest Browse all 1779

Attaching an extension to a model via script

$
0
0

Hi,

 

quick question to one of the PD gurus:

 

How to create a model by script and add an existing extension to it.

 

I'm able to create a model using the CreateModelFromTemplate function based on a template the extension is already attached to, but how to do the same using CreateModel? Is there a parameter wich allows to add an extension?

 

I was trying with CreateModel (PdEAM.cls_Model, EvaluateNamedPath("%_MODELS%") + L1Process.Name + ".eam|Diagram=CityPlanningDiagram|ExtendedModelDefinitions=" + EAMExtensionPath, omf_DontOpenView) since there is nothing about it in the documentation. Of course I failed ...

 

Any ideas?

 

Regards,

Rafal


Viewing all articles
Browse latest Browse all 1779

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>