Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Hide a DrawingView

Status
Not open for further replies.

Lea75

Mechanical
Feb 24, 2009
51
ES
Hello, how can I hide a Drawing view with VB6?
For example, the Front View.
Thank you in advance
 
Replies continue below

Recommended for you

Hi,
see below:

Code:
Option Explicit

Sub HideView()
    Dim drwViews As DrawingViews
    Set drwViews = CATIA.ActiveDocument.Sheets.ActiveSheet.Views
    
    Dim myView As DrawingView
    Set myView = drwViews.Item(3)
    
    Dim sel As Selection
    Set sel = CATIA.ActiveDocument.Selection

    sel.Clear
    sel.Add myView

    Dim visProp As VisPropertySet
    Set visProp = sel.VisProperties
    
    visProp.SetShow catVisPropertyNoShowAttr
    
    sel.Clear
End Sub

Tesak
- Text along a curve for Catia V5
 
Thank you very much! it works good.
Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top