Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to hide planes 1

Status
Not open for further replies.

llbbyy

Mechanical
Mar 21, 2017
21
0
0
CN
After finishing design, a lot's planes are shown in a mess, how to make a macro to hide all the plane?
 
Replies continue below

Recommended for you

Code:
Language="VBSCRIPT"

Sub CATMain()

Set productDocument1 = CATIA.ActiveDocument

Set product1 = productDocument1.Product

Set productDocument1 = CATIA.ActiveDocument

Set selection1 = productDocument1.Selection

selection1.Search "CatPrtSearch.Plane,All"

Set visPropertySet1 = selection1.VisProperties

visPropertySet1.SetShow catVisPropertyNoShowAttr

selection1.Clear 

End Sub
 
Status
Not open for further replies.
Back
Top