Jump to content
Developer Wiki and Function Reference Links ×

add current selection to current class


grant_PD

Recommended Posts

With the object(s) selected, change the class in the OIP and you can set it to whatever class you want.

 

Or goto Tools:Plugins:Plugin Manager and create a new Command.  Copy and paste the following script in to the command script. Then edit your workspace to add it to a menu and give it a keyboard shortcut.  This will change the class of all visible selected objects to the active class.

 

Procedure ClassAsActive;

{December 10, 2019}
{©2019 Patrick Stanford pat@coviana.com}
{Licensed under the GNU Lesser General Public License}

{Sets all visible selected object to the active class}
{No warranty expressed or implied. Use at your own risk}

Procedure Execute(H1:Handle);
Begin
	SetClass(H1,ActiveClass);
	SetSelect(H1);
	ResetObject(H1);
End;

Begin
	ForEachObject(Execute,((VSEL=TRUE)));
	RedrawAll;
End;

Run(ClassAsActive);

 

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