Jump to content
Developer Wiki and Function Reference Links Read more... ×
chrispolo

Is it possible to select multiple extrudes by height?

Recommended Posts

How can I select multiple extrudes with same height but different size and forms ?

Please help It would really help me a lot

Share this post


Link to post

Here's a python script that will prompt you for a height and select extrudes in your document that have that height.

It's in its simplest form, I just threw it together.

 

I've also attached a plug-in file that you can put in your user folder to add as a menu command in your workspace.

 

xtrds = []
def Add_Handle(obj):
	xtrds.append(obj)
			
vs.ForEachObject(Add_Handle,"T=XTRD")

dim = vs.DistDialog('Extrude Height', 0)
sameHeight = []
for xtrd in xtrds:
	height, width, depth = vs.Get3DInfo(xtrd)
	if depth == dim:
		sameHeight.append(xtrd)
		
vs.DSelectAll()
for obj in sameHeight:
	vs.SetSelect(obj)

 

Select Extrudes of Height.vsm

  • Like 2
  • Love 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.

×