Jump to content

New layout reactor


Mara821

Recommended Posts

Hello,

I have problem with command reactor. I want to dress up (add some blok, put viewport in specific layer) all new layouts created by command „layout“ with option „New“ or the „plus“ icon in layout list panel. How can I find out the event (new layout) is occured? And how can I get reference to this new layout? Any ideas? Command ended reactor to command "LAYOUT" fires everytime even the new layout is not created.

 

Thanks for help and I'am sorry for my english

 

Marek

Link to comment
Share on other sites

To reduce the number of times the callback function is evaluated, you could alternatively use a vlr-miscellaneous-reactor with a callback function evaluated on the :vlr-layoutswitched event. This event passes the layout name as an argument to the callback function which you can use to retrieve the appropriate Layout object from the Layouts collection.

Link to comment
Share on other sites

If you want to stick with a command reactor you can compare the new (layoutlist) against the stored previous version to determine if a new layout has been created.

As an alternative I would first look at using the :vlr-objectappended event of the vlr-acdb-reactor.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...