Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-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
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

ferdo, I found the answer in the forum,Thank you very much.
 
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.

Part and Inventory Search

Sponsor