Cancel
Showing results for 
Search instead for 
Did you mean: 

loadModel

Genius
Genius

I try to use the function loadModel in plantsimulation in 14.1 with -TrustModels option

 

so I use this method:

closeModel
loadModel("modelName.spp")

But when loadModel is executed I have an error => Access to the computer is prohibited. See "File > Model Settings > General > Prohibit access to the computer"

 

The prohibited option is set for a model so when there is no model loaded prohibited is set to true.

 

How can i use loadModel function in plantSimulation if I can't acces to the computer when no model is loaded ?

 

rpinon

2 REPLIES

Re: loadModel

Siemens Phenom Siemens Phenom
Siemens Phenom

I think we were too strict about loadModel. I do not see a reason why loading a model should be prohibited if access to the computer is not permitted. The autoexec methods cannot do harmful things as long as the model is not signed with your trust ID (i.e. the model was not saved by you) − unless you start Plant Simulation with -TrustModels.

 

We will allow loadModel in future maintenance packs.

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: loadModel

Genius
Genius

Thanks