Jump to content


Quick key for change layer

layer quick key

4 replies to this topic

#1 carmelo

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 06 December 2013 - 05:30 PM

Hi all!
i like NanoCad software but i want personalize quick key for change layer in my prototype drawing.
Is it possible?
Regards
Carmelo

#2 carmelo

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 07 December 2013 - 09:28 AM

For exemple,

Ctrl+1=freeze layer number 1
Ctrl+2=freeze layer number 2

...
Alt+1=Unfreeze layer number 1
Alt+2=Unfreeze layer number 2
...
Ctrl+L=Freeze all layer
Alt+L=Unfreeze all layer


In other cad software it is possible...
Is it possible to customize it in NanoCad?
I hope yes...
Thank you
C.

#3 SevaM

    Admin

  • Administrators
  • 225 posts

Posted 09 December 2013 - 10:34 AM

Hello Carmello,

it's possible, but take some hand work. You should create text file with name USERDATA.CFG in the nanoCAD folder and define custom commands for each action ( sample attached ).

For example, 4 commands to set layer 0 current, set layer 1 current, freeze layer 1 and unfreeze layer 1

[\configman\commands\slayer0]
weight=i30 |cmdtype=i1 |Caps = W0x34 |CapsDisable = W0x0
intername=sslayer0
RealCommandName = ssetvar
Keyword = sCLAYER 0
StatusText=sSet layer0
ToolTipText=sSet layer0
DispName=sSet Layer 0

[\configman\commands\slayer1]
weight=i30 |cmdtype=i1 |Caps = W0x34 |CapsDisable = W0x0
intername=sslayer1
RealCommandName = ssetvar
Keyword = sCLAYER 1
StatusText=sSet layer1
ToolTipText=sSet layer1
DispName=sSet Layer 1

[\configman\commands\flayer1]
weight=i30 |cmdtype=i1 |Caps = W0x34 |CapsDisable = W0x0
intername=sflayer1
RealCommandName = s-layer
Keyword = sF 1^M^C
StatusText=sFreeze layer1
ToolTipText=sFreeze layer1
DispName=sFreeze Layer 1

[\configman\commands\ulayer1]
weight=i30 |cmdtype=i1 |Caps = W0x34 |CapsDisable = W0x0
intername=sulayer1
RealCommandName = s-layer
Keyword = sT 1^M^C
StatusText=sUnFreeze layer1
ToolTipText=sUnFreeze layer1
DispName=sUnFreeze Layer 1

We are using system variable CLAYER to set current layer and -layer command to freeze/unfreeze.
When you save userdata.cfg to the nanocad folder and start nanoCAD - you will have 4 more commands available.

Go to Tools - Customize - Interface dialog, Keyboard tab, choose All Commands.

Attached Image: setlayer.jpg

Now you can define hot keys for all new commands.

Best regards,
Seva.

Attached Files



#4 carmelo

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 09 December 2013 - 09:45 PM

Fantastic!!
Thank you very much!

Last question: how to freeze and unfreeze all layer (except current layer)?

best regards
Carmelo

#5 SevaM

    Admin

  • Administrators
  • 225 posts

Posted 10 December 2013 - 02:43 PM

Hello Carmelo,

just use * instead of layer name - and all layers ( except current ) will be freezed. Also, for example you can use "1*" to freeze all layers starting with "1" and so on...

Best regards,
Seva.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users