Solid Edge Assembly Type Library
Suppress Property
Description
Temporarily suppresses the referenced object.
Property type
Read-write property
Syntax
Visual Basic
Public Property Suppress As Boolean
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFramework.Application
    Dim objDoc As SolidEdgeAssembly.AssemblyDocument
    Dim objAngRel As SolidEdgeAssembly.AngularRelation3d
    ' Local variables to be declared here
    Dim bSuppress As Boolean
    Const TESTFILE = "T:\vbtests\testcases\Sample.asm"
    ' Create/get the application with specific settings
    On Error Resume Next
    Set objApp = GetObject(, "SolidEdge.Application")
    If Err Then
        Err.Clear
        Set objApp = CreateObject("SolidEdge.Application")
        Set objDoc = objApp.Documents.Add("SolidEdge.AssemblyDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    On Error GoTo 0
    'Open existing assembly document
    Set objDoc = objApp.Documents.Open(TESTFILE)
    'Get the AngularRelation in the Relations3D collection
    Set objAngRel = objDoc.Relations3d.Item(11)
    'Get the Suppress state of the AngularRelation
    bSuppress = objAngRel.Suppress
    'Change the Suppress state
    objAngRel.Suppress = Not bSuppress
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objAngRel = Nothing
End Sub
See Also

AngularRelation3d Object  | AngularRelation3d Members

Send comments on this topic.