Jump to content
JMR

Is there a way to custom reset plug-ins?

Recommended Posts

Hi all,

 

I needed to reset my space objects in order to show changed custom data in the tags.

 

It takes a long time to reset everything, is there a way to reset only one type of objects? As in select similar - space object - reset plug-ins

 

Thanks

 

Share this post


Link to post

You could create a script in your Resource Manager (set the language to Python Script from the drop down) and place this code in it:

def ResetThem(h):
	vs.ResetObject(h)

vs.ForEachObject( ResetThem, "SEL = True" );

This script will reset all selected objects.

 

Another option is to create a set of scripts that reset objects based on criteria, for example, the following script will reset all Space objects:

def ResetThem(h):
	vs.ResetObject(h)

vs.ForEachObject( ResetThem, "((PON='Space'))" )

 

You can also add these scripts as menu commands using the Plug In Manager.

  • Like 1

Share this post


Link to post

Excellent, thank you very much!

 

(That functionality could be put into a submenu of the reset plug-ins menu, in stock VW...no? Would be very useful IMHO.)

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.

×