Profile picture for user cherik1

When using a template (setTemplate), ObjOcc appear on the model after applying CreateAssigment. If you don't use Template, ObjOcc appear after createObjOcc. I would like to understand why this is happening.

Thanks in advance for your answers.

Best regards, Vasiliy

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Fri, 06/11/2021 - 11:53

CreateAssignment creates an occurrence of the new superior object (but this can be prevented in the code)... 

setTemplate does NOT create occurrences !

Please post your code...

by Vasiliy Chernov Author
Posted on Fri, 06/11/2021 - 12:23

It may be written in the template that the model must have a connection with the object, and while there is no connection, it does not consider it necessary to burden itself with inserting objocc.

There is nothing unusual in my code. 1. Creating a model. 2 applying a template.3 in the loop, insert objocc and arrange. (there are no objocc at this stage) 4. Create a link between the object and the model (the objOcc appear on their mesas).

If you don't apply the template, it normally inserts as the loop progresses.

Sorry for my english.

Best regards, Vasiliy

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Fri, 06/11/2021 - 13:58

A template only changes the appearance of obj occs in the model. It does not create obj occs.

CreateAssignment may (!) create an occ of the superior object (e.g. for VACDs).

So maybe I just don't understand your whole question...


Featured achievement

You blog more than you breathe, and your articles stand out: Create 20 more articles, receive very good feedback and stimulate conversations
Recent Unlocks


Weekly | All-time
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon