Author Topic: Custom Command  (Read 1687 times)

0 Members and 1 Guest are viewing this topic.

ROBBO

  • Bull Frog
  • Posts: 217
Custom Command
« on: December 01, 2014, 06:16:38 AM »
Hello,

I have this custom right click command to place a construction line in the Defpoints layer:

^C^C^P(if
(not(tblsearch "LAYER" "Defpoints"))
^P(command "-layer" "m" "Defpoints" "")^P
(command "-layer" "m" "Defpoints" "")
)^P(command "_xline" (while (/= (getvar 'cmdactive) 0) (command pause)) "layerp") ^P


But if for some reason the Defpoints layer has been frozen the command fails. What can I add to solve this?

Any help or guidance would be appreciated. Many thanks in advance, Robbo.
The only thing to do with good advice is to pass it on.
It is never of any use to oneself.

Oscar Wilde
(1854-1900, Irish playwright, poet and writer)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Custom Command
« Reply #1 on: December 01, 2014, 08:48:31 AM »
Hello,

I have this custom right click command to place a construction line in the Defpoints layer:

^C^C^P(if
(not(tblsearch "LAYER" "Defpoints"))
^P(command "-layer" "m" "Defpoints" "")^P
(command "-layer" "m" "Defpoints" "")
)^P(command "_xline" (while (/= (getvar 'cmdactive) 0) (command pause)) "layerp") ^P


But if for some reason the Defpoints layer has been frozen the command fails. What can I add to solve this?

Any help or guidance would be appreciated. Many thanks in advance, Robbo.

Somewhere in there one might want to -layer THAW DEFPOINTS
Be your Best


Michael Farrell
http://primeservicesglobal.com/