Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Mar 21, 2017
Messages
21
Location
CN
After finishing design, a lot's planes are shown in a mess, how to make a macro to hide all the plane?
 
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

Back
Top