cancel
Showing results for 
Search instead for 
Did you mean: 

Where are the model files on the local disk?

former_member554397
Participant
0 Kudos
163

Hi !
I open models from Repository through a script.
Where are the model files on the local disk?

How to open models without opening diagrams?

Set fldr = RepositoryConnection.FindChildByPath(my_branch, Cls_RepositoryFolder, "", Nothing, False)
For Each subObj In fldr.ChildObjects
If subObj.IsKindOf(PdRMG.Cls_RepositoryModel) Then
subObj.CheckOutToFile subObj.ExtractionName, 1 ' Where are the model files on the local disk?
End if
Next

Accepted Solutions (1)

Accepted Solutions (1)

Ondrej_Divis
Contributor

Hi Alexander,

1. If you do not specify path in parameters in your CheckOutToFile function, it is just opened in memory and no file is created.

2. CheckOutToFile allows you only to decide whether TO OPEN or NOT TO OPEN the model. But it doesn`t allow you to add additional parameters. In order do do that, you shoul use CheckOutToFile with NOT OPENING the model and then as a second step use standard OpenModel method, which will let you parametrize whether to open diagram or not.


Regards,

Ondrej Divis

Answers (0)