Hi!
Please tell me how to find out when executing the script that the object OCC is busy or the model is open?
Hi!
Please tell me how to find out when executing the script that the object OCC is busy or the model is open?
With some ARIS version > 10.0.3 (definitiely 10.0.7 and newer not sure about the versions between 10.0.3 and 10.0.7) the Model class got a canWrite ( boolean p_bCheckAccessPermissions ) method. Check your script help to figure out whether or not you can make use of that method.
If you can use it, your database isn't open in read-only mode and your script has write permissions, it's as simple as calling
yourObjocc.Model().canWrite(false)
which will return a boolean false when you should stay away from trying to make changes to the model.
With some ARIS version > 10.0.3 (definitiely 10.0.7 and newer not sure about the versions between 10.0.3 and 10.0.7) the Model class got a canWrite ( boolean p_bCheckAccessPermissions ) method. Check your script help to figure out whether or not you can make use of that method.
If you can use it, your database isn't open in read-only mode and your script has write permissions, it's as simple as calling
yourObjocc.Model().canWrite(false)
which will return a boolean false when you should stay away from trying to make changes to the model.