Hi,
I need help with this: I'm trying to create a new occurrence from an object definition like this
var newOccurrence = model.createObjOcc(symbol,objDef,origOcc.X(),origOcc.Y());
All those variables exist and are, I think, correct. But my occurrences are not created. And debugging I realized that my variable, new Occurrence, is invalid. It is like this: Aris Object (invalid).
So I think that something is wrong with the creation, maybe with one of my parameters. Anyone have experienced something like this?
thanks in advance,
Rafael
Jens Heylmann on
Hi Rafael,
you have to check if the symbol type is allowed for your object definition and model. Next check if the object type of the object definition is allowed for the model type of your model definition. Use the ARIS method help.
Last. Try to set the position parameters to zero or 1:
var newOccurrence = model.createObjOcc(symbol,objDef,1,1);
Regards,
Jens