Jump to content
Sign in to follow this  
David Jacobs

changing class attributes across multiple files

Recommended Posts

We have a number of drawings (possible hundreds) all are using same basic set-up for classes, layers. Is there a way to simplify changing these class attributes without opening each and every file and doing this over and over again?

Share this post


Link to post

You can import the classes into each document. You still have to open each document but you don't need to manually make the changes.

Tools > Organization > Classes Tab > New > Import Classes (UNcheck "Show only classes that are not in the current document" > Select the classes....

I bet there's a way to script it. You might try asking this question in the VS forum.

MK

Share this post


Link to post
You can import the classes into each document. You still have to open each document but you don't need to manually make the changes.

Tools > Organization > Classes Tab > New > Import Classes (UNcheck "Show only classes that are not in the current document" > Select the classes....

I bet there's a way to script it. You might try asking this question in the VS forum.

MK

DANGER! Be aware that by using import classes that already exist to override the attributes, you loose all your visibilities in all viewports!

I once needed this and it works really great for having more than one custom look, but the one and only downside to it is losing the visibilities in viewports, which makes it unusable. So I had to go with another way which works for us.

Share this post


Link to post
We have a number of drawings (possible hundreds) all are using same basic set-up for classes, layers. Is there a way to simplify changing these class attributes without opening each and every file and doing this over and over again?

I have made a script that looks at the attributes off classes and change them according to some criterea.

Can you tell us what and how you want to change them? Maybe you can use this script too. Then I'll post it on this forum.

Share this post


Link to post

I could use the script as well if you'd be so kind! The changes I need to make for numerous classes of numerous files are class line weights, fill color, and pen color.

Many Thanks.

Share this post


Link to post

Also is it within the ability of a script to export 100's of files to pdf or is a simply limited to files that are open?

Thanks.

Share this post


Link to post

The script can only be used per document. But maybe someone with sdk knowledge can help transform it so that it can be done on multiple files?

Also it uses a text file where I put all color transformations in. So you will need to know which color will be transformed to which. I use this command for switching our office style from standard to sober and back. So we use certain colors for the standard and other for the sober one. Can you think about how you want to change the attributes in more detail? Maybe I can change the script to something more your needs.

I will clean the script and post it.

Share this post


Link to post

If you are running VW on a Mac, you can probably write an Applescript to step through the files and run the script on each one.

If you are on a PC I don't know of a way to do it.

Share this post


Link to post

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.

Sign in to follow this  

 

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.

×
×
  • Create New...