grant_PD Posted December 10, 2019 Share Posted December 10, 2019 Is there an easy way to add the selected object to the current active class? I'm looking at my workflow and there are times when I bring in lots of things from the resource browser, or copy/paste, and I want the object in my OIP to take the current active class. Quote Link to comment
Pat Stanford Posted December 11, 2019 Share Posted December 11, 2019 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); Quote Link to comment
Boh Posted December 11, 2019 Share Posted December 11, 2019 Another option is with objects selected go to the navigation palette, right click on the class you want to assign and select assign class. 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.