Jump to content
Alessia M

Classes how to create subclasses?

Recommended Posts

Hi,

 

I am trying to find a way to create Subclasses in Vectorworks and to move existing Classes into Subclasses.

Where can I find this function or topic to read in the manual or online?

 

Thank you!

Alessia

 

Share this post


Link to post

To create subclasses, you only need to add a - so "Glass-Clear" would be a subclass of "Glass"

To move an existing class into a subclass of another, youd add MainClassName- to the front of the name of the original class. This system is a bit clunky and has been marked for improvement.

Share this post


Link to post

And make sure you use a hyphen (short dash), not an en-dash or em-dash (longer dashes) as only the hyphen is recognized as the subclass separator.

 

I believe you can make sub-classes up to 4 levels deep (Class plus 3 nested sub-classes. After that hyphens don't make a deeper subclass but can be used in the name.

 

You also need to make sure Hierarchical display is turned on in the Organization dialog box and the Navigation Palette.

Share this post


Link to post

 

Hi @JimW @Pat Stanford 

 

This is indeed a simple way to move classes to subclasses but only efficient when you want to move a few classes by manually adding a prefix. 

I usually import a lot of DWGs and mostly add a prefix to keep them organized once imported from import settings, but I'm wondering how would you move, say 100 classes to sub-classes if it's not done when importing. 

I hope I'm able to explain well.

 

Thanks

Kohli

 

 

  • Like 1

Share this post


Link to post

It would be good if we could drag and drop classes to organise them. That way you could select several and drag them...

  • Like 2

Share this post


Link to post

You can edit the names of mulitple classes at once via the "Edit Class Names..." command:

 

image.thumb.png.095b9654259defa9b201c5f6dbc1f04b.png

Share this post


Link to post

@Jonathan Pickup Yes, Drag & drop is certainly a more intuitive approach to do this. I hope this feature becomes available soon.

Share this post


Link to post

@Boh  I'm sorry I dont see this on my VW 2019 running on mac. Any idea why?

 

Screen Shot 2019-02-25 at 12.13.39 PM.png

Share this post


Link to post

Can you add it to your workspace? If not it may be a local version plugin. 

Share this post


Link to post

@Boh I couldn't find it in the workspace manager. I use US version of Vectorworks, its surprising such a basic feature has been excluded. 

Is there a way around, to install it as a 3rd party plug-in or something like that?

Edited by Kohli

Share this post


Link to post

this is not a feature that has been EXCLUDED. It is an additional feature that has been created for the Aust/NZ market. Many of the international distributors create tools for their customers which are not available for the US market.

Share this post


Link to post

@Jonathan Pickup Thanks for the insight, Jonathan. Is there any way to INCLUDE these additional features whenever not available?

Share this post


Link to post

Maybe if you talk nicely to your local distributor...  in reality, the answer is no.  

 

You could learn to program Vectorworks and make your own tools. 

Share this post


Link to post

@Jonathan Pickup I don't see the point of paying for Vectorworks and then program to make basic tools.
I'll consider talking to the local distributor nicely though it's hardly useful 🙂
Thanks for your time.

Share this post


Link to post
6 hours ago, Kohli said:

I don't see the point of paying for Vectorworks and then program to make basic tools.

Quite a few of us think the same way, it has been requested before that VW tries to make this either available or part of the base program (base meaning the US international version on which localised versions are based). Especially for those of us working internationally this can be an issue if some tool that could be considered basic/essential is only available locally as it can cause issues with editability of drawings.

Share this post


Link to post

Well, even though I have the Edit Class Names command, I still regularly use this script created by @Matt Panzer in 1997!

 

It simply adds a prefix to all classes in a file. Typical scenario is when I import dwg I do so into a blank file that has this script, run the script adding a "z-" prefix to all classes. Maybe clean out the dwg a bit more before importing it into my project file. All the random dwg classes will be nicely collapsed away at the bottom of my class list.

{
Written by:
Matthew G. Panzer
PanzerCAD Services, Inc.
1997
}
PROCEDURE ChangeClassNames;
VAR
Count: INTEGER;
ClassName: STRING;
PrefixStr: STRING;

BEGIN
PrefixStr := StrDialog('Add prefix(to all classes):', 'DWG-');
IF (ClassNum>1)
AND
YNDialog('This will rename all of your classes! Are you sure you wish to continue?')
THEN
BEGIN
FOR Count := 3 TO ClassNum DO BEGIN
RenameClass( ClassList(Count), ConCat(PrefixStr, ClassList(Count)) );
END;
END;
END;
RUN(ChangeClassNames);

 

 

Share this post


Link to post
19 minutes ago, Boh said:

Well, even though I have the Edit Class Names command, I still regularly use this script created by @Matt Panzer in 1997!

I'll take the Edit Class Names command over the script, if only because I need to rename sets of classes afterwards when things change greatly in the drawings.😊

 

One would think that VW would consider this to be a basic feature that would be of benefite for a lot of VW users and therefore included it in the base version for all VW versions/localisations. Let's hope it will be included in VW2020.

  • Like 1

Share this post


Link to post

@Art V sorry for my naive question but how can providing tools which are already tested ok elsewhere cause issues with editability of same file format drawings, because of their geographical locations? I honestly fail to understand the real cause behind it but that's not my concern unless i'm provided a software which helps me focus on my design projects rather than unnecessary programming.  🙂

Share this post


Link to post

@Boh Thanks for the script. In my case, I directly import DWGs into my project and add a prefix to imported classes from advanced import settings. :3
Are you aware of any other script which allows me to rename multiple classes instead of ALL classes? 🙂

Screen Shot 2019-02-26 at 11.58.14 AM.png

Share this post


Link to post
4 hours ago, Kohli said:

Are you aware of any other script which allows me to rename multiple classes instead of ALL classes? 

Sorry no. There is a class mapping feature which lets you map the classes of regularly imported classes. Though I have never used that feature.  

Share this post


Link to post
16 hours ago, Kohli said:

@Art V sorry for my naive question but how can providing tools which are already tested ok elsewhere cause issues with editability of same file format drawings, because of their geographical locations? I honestly fail to understand the real cause behind it but that's not my concern unless i'm provided a software which helps me focus on my design projects rather than unnecessary programming.  🙂

For example... I have some custom tool that creates objects that you can see but cannot fully edit as intended unless you have that tool yourself. So if you get a file from someone in another part of the world where they use such kind of a tool then you may not be able to edit it at all or only in a (very) limited way or after converting it into a dumb object.

 

In the case of a rename tool this is not going to be much of an issue, but with some other tools it may be an issue.

 

Share this post


Link to post
16 hours ago, Boh said:

Sorry no. There is a class mapping feature which lets you map the classes of regularly imported classes. Though I have never used that feature.  

I tried using the class mapping feature on another occasion while i was on vw2018, it wasn't very user-friendly and eventually, I did things manually. Thanks for reminding though, I'll dig into it again on vw2019.

Share this post


Link to post
6 hours ago, Art V said:

For example... I have some custom tool that creates objects that you can see but cannot fully edit as intended unless you have that tool yourself. So if you get a file from someone in another part of the world where they use such kind of a tool then you may not be able to edit it at all or only in a (very) limited way or after converting it into a dumb object.

 

In the case of a rename tool this is not going to be much of an issue, but with some other tools it may be an issue.

 

I see what you mean, which means providing as many of such tools in the base package would avoid causing the issues of editability. I hope the future versions include these exclusive additional features in their base package.

Share this post


Link to post

I been using VW for 20 years and now finally having a look at managing the seemingly endless string of classes that are part of every DWG file I import - (generally a Topographical survey).  Until now been always deleting all imported classes because it made a mess out of my files.

 

So let me get this straight - the only way to clean up and organize these things is to manually - one by one- change the class name or use some form of programming code???

 

Seriously???

 

Why the hell cant we just create a 'new' sub class and drag em all in there...come on guys

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×