Jump to content
Mara821

New layout reactor

Recommended Posts

Mara821

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

Share this post


Link to post
Share on other sites
Lee Mac

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.

Share this post


Link to post
Share on other sites
Roy_043

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.

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...