Jump to content
Developer Wiki and Function Reference Links ×

Is it possible to select multiple extrudes by height?


Recommended Posts

  • Marionette Maven

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

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.

×
×
  • Create New...