Jump to content

Adding objects into the a pallet


Recommended Posts

I don't think so.

 

AFAIK Palettes are limited to Tools.

Not even "Commands" (?) which rest in Menus.

 

But I do not really understand the need for Symbols in Palettes.

Symbols are Content, another type and Content is usually made

available from "Resource Manager".

I hide RM and only activate it when needed. But you could add your

important Symbols to a custom File Template to have them all time

available. And if you don't mind the needed space, subtracted from

drawing area, leave RM with your Symbols always open.

 

Did I get something wrong ?

Link to comment

Zoomer is correct that is not really possible as a default in Vectorworks.  

 

Tool Palettes are just for tools.

 

But just to show that Vectorworks can do almost anything here is the script that can basically do what you want.

 

You would need to create a Plug-in Tool object and script for each symbol you want to have on the tool palette. You will also have to create icons (in both single and double size) for each symbol and attach them. 

 

You will then have to edit your workspace to (probably) add a palette and add each of your new tools to that palette. You could add them to an existing palette, but if you have more than one or two that would seem odd to me.

 

As written the script saves and restores the active symbol. If you don't care about that you could delete about half the lines.

 

Go to Tools:Plug-ins:Plug-in Manager and create a new Plug-in Tool. Click the Edit Script button and paste the script in.  Change the PTS-1 line to be the name of the symbol you want to have inserted.

 

If you decide to do this for real, you will want to Edit Definition and change the Category on the General tab (make it just for your tools) and add a custom 26x20 pixel PNG icon on the Properties tab.

 

Then edit your workspace and add the tool to a palette. When you activate the tool it will insert the symbol that you defined in the script.

 

Ask again if you need more help.

 

Procedure SpecificSymbolInsert;

{March 1, 2022}
{©2022 Patrick Stanford pat@coviana.com}
{Licensed under the GNU Lesser General Public License}

{No Warranty Expressed of Implied. Use at your own risk.}

VAR	S1:String;

BEGIN
	PushAttrs;
	S1:=GetName(ActSymDef);  	{store the name of the active symbol}
	SetActSymbol('PTS-1');		{set the symbol to insert}
	CallTool(-309);				{activate the symbol insertion tool}
	SetActSymbol(S1);			{restore the original active symbol}
	PopAttrs;
End;

Run(SpecificSymbolInsert);

 

  • Like 1
Link to comment

Another option, that eliminates the need to edit the workspace and gives almost as easy of access would be to use the Custom Tool/Attribute command to make scripts that would select the Symbol you want and the Symbol Insertion tool.

 

This will give you the scripts in a script palette instead of tool palette. The scripts will then require a double click to run instead of just clicking on the tool icon. And you will not be able to create an icon, the name of the script will just be text in the palette.

 

But if you look at the script created, it is very similar to what I wrote above.

 

Different methods of getting similar results.

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...