Jump to content

Class for new Title Block Border objects?

Recommended Posts

Is there a way to set a Title Block Border object to always insert onto a particular class once it's been saved as a Style in the Resource Manager (like a red symbol)?


For example with regular symbols, under Symbol Options you can choose a class for that symbol to always insert onto. How can I do that with a TBB Plug-In Style? Currently it always inserts onto the active class.


@Nikolay Zhelyazkov

Link to comment

I don’t think you can.


I don’t know if it works for titleblock border styles but for detailer styles if the detailer object is on a particular class when the detailer style is created then it will insert into that class when dragged in from the RM.


TBB styles are a bit different however so not sure it would work wth them. 

  • Like 1
Link to comment

As I always have "none" as my active class a workaround which I use to quickly assign selected objects to a class is to use a script. I have several of them in an "Assign Class" script palette.


This one assigns objects to the none class but you can easily edit it to make it assign objects to the titleblock class if you wish. Just change the third line.

Procedure SetTheClass;
	kCName = 'None';
	gh1 : HANDLE;
Function DoIt(h1 : HANDLE) : BOOLEAN;
	SetClassN(h1, kCName, True);

	Locus(0, 0);
	gh1 := LNewObj;
	ForEachObjectInList(DoIt, 2, 2, FInGroup(GetParent(gh1)));


Link to comment
  • Vectorworks, Inc Employee

Hello @Andy Broomell,


@Boh is right. If you create new TBB style out of a TBB assigned to a class, when you insert objects of that style from the RM they are assigned to the specified class and not the active class. However, this works only for drag & drop from the RM. Creating the styled TBB from the tool takes the active class.


Best Regards,

Nikolay Zhelyazkov

  • Like 1
Link to comment
7 hours ago, Nikolay Zhelyazkov said:

However, this works only for drag & drop from the RM.


Interesting that it only applies to drag & drop and not double click insertion. Good to know, thank you!


For what it's worth, my goal is simply to set up a template for others to use that's hard to mess up. I actually just leave TBBs on the None class, but in some other people's files I've recently seen a number of TBBs on the Dimension class (which was surely Active when the TBB was inserted) and therefore the borders were blue 😅



Edited by Andy Broomell
Link to comment
3 hours ago, grant_PD said:


@Boh love that script you posted!  Do you know of any way to make the script work on all nested objects in the selection?


Glad you are finding it useful. Credit for the script goes to @Julian Carr who kindly wrote it for me.


Sorry I’m not a scripter so i have no idea how to edit it beyond changing the class it assigns to. I think there may be a script out there already that does something like what you want.

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.

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