bcd Posted June 19, 2010 Share Posted June 19, 2010 Can anyone tell me the keyboard shortcut for a New Layer & New Class. I just can't find it anywhere. Thanks, Brian Quote Link to comment
mike m oz Posted June 19, 2010 Share Posted June 19, 2010 (edited) I'm not aware of keyboard shortcuts for doing that. You can edit or create from the respective tabs of the Navigation Palette by right clicking. Edited June 20, 2010 by mike m oz Quote Link to comment
bcd Posted June 19, 2010 Author Share Posted June 19, 2010 Is it even possible using custom shortcuts in a custom workspace? It would be so useful. Quote Link to comment
mike m oz Posted June 20, 2010 Share Posted June 20, 2010 Its not possible. I can't recall anybody else ever making this suggestion/request. Quote Link to comment
Bruce Kieffer Posted June 20, 2010 Share Posted June 20, 2010 You could use the 3rd party program Quickeys and make a shortcut (macro) to do what you want, but I agree with Mike that right clicking on the navigation palette is simple enough. Quote Link to comment
bcd Posted June 20, 2010 Author Share Posted June 20, 2010 I know there are other ways of achieving this - I just wondered if it was available as a shortcut, or could be. eg there are at least 3 ways of moving to the next/previous layer previous/next class etc including keyboard shortcuts. Same for previous View /Next View. For some of my work it fits my workflow to work from a blank document rather than a fully developed template and add layers & classes as needed : a keyboard shortcut would be helpful. Thanks for the Quickkeys tip I'll look into that it sounds like it might provide an answer. Quote Link to comment
Pat Stanford Posted June 20, 2010 Share Posted June 20, 2010 (edited) You could write a very short Vectorscript and put that into a Menu procedure and than put that into a workspace. This will do the new layer: Procedure New_Layer; Var H1 :Handle; S1 :String; Begin S1:=StrDialog('Enter Name for New Layer:','New_Layer'); If S1<>'' then Layer(S1) else AlrtDialog('You can not use that name for a layer'); End; Run(New_Layer); And this will do the new class Procedure New_Class; Var H1 :Handle; S1 :String; Begin S1:=StrDialog('Enter Name for New Class:','New_Class'); If S1<>'' then NameClass(S1) else AlrtDialog('You can not use that name for a class'); End; Run(New_Class); Go into the Vectroscript Plugin Editor and create a new Menu Command. Paste the above into the Script pane. Then edit your workspace and assign a keyboard shortcut. Edited June 20, 2010 by Pat Stanford 2 Quote Link to comment
bcd Posted June 20, 2010 Author Share Posted June 20, 2010 Beautiful, Thanks Pat - so simple and it works a dream. Brevity & precision, lovely. Thanks B Quote Link to comment
Marcelo Bernardo Posted January 17, 2019 Share Posted January 17, 2019 (edited) Ignore my previous post Edited January 17, 2019 by Marcelo Bernardo Quote Link to comment
trashcan Posted January 14, 2021 Share Posted January 14, 2021 Thought I found a holy grail here, but Vectorscripts' Editor doesn't seem to exist anymore. How can I create hot keys for new class and new layer? @Pat Stanford any ideas? Quote Link to comment
Pat Stanford Posted January 14, 2021 Share Posted January 14, 2021 Tools:Plug-ins:Plug-in Manager Custom Plug-ins pane. New. Command. Edit Script... button. Paste the script from above. Edit workspace to add the new command and assign a keyboard shortcut. HTH 1 Quote Link to comment
setdesigner Posted January 14, 2022 Share Posted January 14, 2022 I have made those script into menu commands and it it very usefull. I also made one to activate Design Layer-1. Layer('Design Layer-1'); I have problem making it work when I am on a sheet layer and I run the script; I get into Design Layer-1 but objects on other layers don't show up if I had Shaded mode and if I had wireframe mode, they are fixed when I use the flyover tool. @Pat Stanford would you have any clues why ? 2022-01-14-ACTIVE-LAYER-SCRIPT.vwx Quote Link to comment
Pat Stanford Posted January 14, 2022 Share Posted January 14, 2022 It appears that switching to a Sheet Layer turns off Unified View. Try this script instead. It switches to the design layer and then turns unified view back on. Layer('Design Layer-1'); SetPref(94,True); The alternative is to use a Saved View instead. You can call that from a script by: VRestore('Your View Name'); 1 Quote Link to comment
setdesigner Posted January 14, 2022 Share Posted January 14, 2022 Thanks soo much @Pat Stanford that is working ! The script is prefered to saved view because I can keep the layer states last used Quote Link to comment
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.