Reactors to place view ports and label blocks for views on specific layers.
Here's another... eh... challenge I've encountered.
When you place a view on a sheet using the SSM, the view port and the label block for that view are created/inserted on whatever layer is current.
Is there any way to specify those layers? So the view port would be created on (for example) L-VIEWPORT and the label block would be inserted on (for example) L-ANNO-SYMB?
I thought maybe a reactor... but I'm not well versed in reactors... yet.
Thanks again,
-JP
Re: Reactors to place view ports and label blocks for views on specific layers.
Quote:
Originally Posted by
jpcadconsulting347236
I thought maybe a reactor... but I'm not well versed in reactors... yet.
Sounds like after all these years of professional LISP development as a consultant, you've stumbled upon the challenge within the challenge... Learning yourself some Reactors! :hooray:
#BonusChallengeRevealed
As a starting point, I'd recommend using MgdDbg to see what events are firing when you do what you're trying to do, then see if LISP has a Reactor for that to do what you want.
Think of this is like the Oregon Trail game, but with code... Will JP make it... Or die from [LISP]entery...? :beer: Haha
Cheers
Re: Reactors to place view ports and label blocks for views on specific layers.
Hilarious that you quote Oregon Trail. I died of dysentery hundreds of times in my youth. ;-)
I actually found a reactor in for the Viewport that works in another forum (ok to post?)
https://forums.autodesk.com/t5/visua...r/td-p/1853577
I'm trying to modify it to work with the block that is inserted with the viewport and then hopefully with the other SSM blocks.
I'll keep you posted on my "progress".
Thanks BlackBox, as always!
-JP