The snippet below is for Draw. It creates layer name utilizing the view name.
The current issues is it only works for the first view then it will not initiate "VAR1 NAM" again, unless the forum is closed and re-launched.
How can VAR1 NAM be initiated when button AB is pressed? If I don't declare "VAR1 NAM" when the forum starts, I get an error "Variable 1 not defined".
KILL _COM.CPOSXX SETUP FORM _COM.CPOSXX ONERROR CONTINUE TITLE | ECS DRAW TOOLBAR | HDIST 0.35 VAR1 NAM FRAME.A 'LAYERS' AT X0 YMIN+0 BUTTON.AA 'VLYSET' CALL '$m Z:\121scdev_E3D\ECSmacros\Support\VLAY.txt' BUTTON.AB 'LAYERS' CALL 'VAR1 NAM NEW LAYE $V1-LABS NEW LAYE $V1-DIMS NEW LAY $V1-TEXT' BUTTON.AC 'VNOT' CALL 'NEW VNOT' EXIT