Mara821 Posted August 1, 2016 Share Posted August 1, 2016 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 Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted August 1, 2016 Share Posted August 1, 2016 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. Quote Link to comment Share on other sites More sharing options...
Roy_043 Posted August 1, 2016 Share Posted August 1, 2016 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.