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 select all Work Planes in a Product

Status
Not open for further replies.

T105

Mechanical
Jun 7, 2009
14
I need to hide all the planes in a product without digging into each part. Sometime in the past I was doing this but now I couldnt find it.

I would be pleased to get some help in the issue.

Best regards
 
Replies continue below

Recommended for you

Hi,

Copy-Paste in a CATScript

Language="VBSCRIPT"

Sub CATMain()

Set ProductDocument1 = CATIA.ActiveDocument
Set Product1 = ProductDocument1. Product

Dim ProductDoc1_As_Document
Set ProductDoc1 = Catia.ActiveDocument

Dim Selection1_As_Selection
Set Selection1 = ProductDoc1.Selection

Selection1.Search "CatPrtSearch.Plane,All"
Set visPropertySet1 = Selection1.visProperties
VisPropertySet1.SetShow 1
Selection1.Clear

Dim specsAndGeomWindow1 As Window
Set specsAndGeomWindow1 = CATIA.ActiveWindow

Dim viewer3D1 As Viewer
Set viewer3D1 = specsAndGeomWindow1.ActiveViewer

Dim viewpoint3D1 As Viewpoint3D
Set viewpoint3D1 = viewer3D1.Viewpoint3D

viewer3D1.Reframe

Set viewpoint3D1 = viewer3D1.Viewpoint3D



End Sub

Regards
Fernando
 
Thats great. Thank you very much.

Best regards
 
Always the simplest solution is best, I completely forgot the power input....... and when you think I worked some time in v4 ...:->

Regards
Fernando
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor