Macro to hide constraint plane

Started by Jeff, December 08, 2010, 05:53:01 AM

Previous topic - Next topic

Jeff

Is there a way that when you probe a feature that you can put the constraint plane into a group and then hide the constraint plane? We have our feature branch display set to order by creation. We don?t report on the constraint plane just on the feature. The constraint plane clutters up the screen and the tree.

Admin

Are you looking to create macro so you can make a button that you press and it automatically hides the plane of the last feature created? 

OR

Are you looking to turn off that default setting on the constraint plane?

I don't know how to either right now, but I'm just trying to clarify the answer.  I think the first options should be pretty straight forward for  macro to be written for.

Jeff

I would like the macro to execute right after measuring the feature and I would like to hide the plane only if it is a constraint plane. I would like the constraint plane to them move into a group or to the bottom of the tree.

jrayself

The following macro could be put into a button and clicked at any time to select, subset and hide any feature with the beginning name of "constraint".  Personally, I'm not aware of any way to make a macro monitor a project.  This does accomplish everything else you requested though.


TREEVIEW SELECT NONE
TREEVIEW SELECT FROM_NAME_PATTERN ( "constraint*" )
TREEVIEW FEATURE COLLAPSE
VIEW VISIBILITY OBJECTS HIDE ( )
TREEVIEW SUBSET CREATE ( , )
TREEVIEW SUBSET PROPERTIES NAME ( "constraint planes",  )
TREEVIEW SELECT NONE
Jason R. Self
Dimensional Engineering, Inc.

Jeff

That worked well thank you very much!