Jump to content

Activate Layer and Class - Short Cut


Recommended Posts

  • Vectorworks, Inc Employee

Good idea and thanks for sharing!

This reminds me of an old wish of mine to have the "Activate Class" command activate the "None" class when right-clicking on the background.  That might be something worth putting in there.  In that case, the active layer would not change but the active class would be set to "None".

Just thought I'd throw it out there...  🙂 

  • Like 4
Link to comment
  • 7 months later...

@Taproot

This seemed really useful and I immediately downloaded it!

...a while ago.

...I'm just getting around to loading it.

 

 

And (as expected) the help pages are not helpful at all.

Quote

"Add the new plug-in to one or more workspaces with the Workspace Editor.   See Customizing workspaces.   Once the item has been added to a workspace, it is available to any open file in Vectorworks without the need for importing the associated script into the active file."

 

Of course clicking on the customizing workspaces link says absolutely nothing about .vsm files and how to add them to your workspace....

 

 

If you have a moment, could you give me a condensed "this is how you make this work" list of actions?

 

Thanks!

Link to comment

You just need to add the .vsm file to the "Plugins" folder located in either your Vectorworks app folder or your User folder (depending upon how you organize your custom plugins.

 

You'll then need to restart VW.  When it starts up again, the available plugins will be refreshed. 

 

Then go to menu: Tools>Workspaces>Edit Current Workspace

 

Select "Menus" (not Tools or Keys)

On the left sidebar, flip down "All Menus" and scroll the list to the new plugin name that you want to add to your workspace.

 

Grab it and drag it into the menu location of your choice (at right).

Once there, you can assign a hot key (short cut).

 

  • Like 2
Link to comment
  • 1 year later...
  • 1 month later...
  • 4 months later...
  • 9 months later...

I'm still using this script / menu item without any glitches, so for those of you experiencing problems - consider editing the script and replacing it with new text:

 

Navigate to the following menu: Tools>Scripts>Plug-in Manager ... "TA_Activate L+C Tool"

Then click on "Edit Script"

 

Paste:

 

PROCEDURE ActivateLayerAndClass;
VAR
    pt : POINT;
    h : HANDLE;
BEGIN
    GetPt(pt.x,pt.y);
    h:=PickObject(pt.x,pt.y);
    IF h<>NIL THEN
    BEGIN
        NameClass(GetClass(h));
        Layer (GetLName (GetLayer(h)));
    END;
END;
RUN(ActivateLayerAndClass);

 

 

If you want to access a few similar tools and/or review more on this topic refer to this post:

 

  • Like 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...