Solid Edge Part Type Library
SuppressedRelationshipCount Property
Description
Returns the number of suppressed relationships in a family of parts.
Property type
Read-only property
Syntax
Visual Basic
Public Property SuppressedRelationshipCount As Long
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objPartDocument As SolidEdgePart.PartDocument = Nothing
        Dim objFamilyMembers As SolidEdgePart.FamilyMembers = Nothing
        Dim objFamilyMember As SolidEdgePart.FamilyMember = Nothing
        Dim objRelationship As Object = Nothing
        Dim i As Integer

        Try
            OleMessageFilter.Register()

            ' Connect to Solid Edge
            objApplication = Marshal.GetActiveObject("SolidEdge.Application")
            objApplication.Visible = True
            objPartDocument = objApplication.ActiveDocument
            objFamilyMembers = objPartDocument.FamilyMembers

            ' Loop through all family members
            For Each objFamilyMember In objFamilyMembers
                ' Loop through suppressed relationships.
                For i = 1 To objFamilyMember.SuppressedRelationshipCount
                    ' Get SuppressedRelationship at given index.
                    objRelationship = objFamilyMember.SuppressedRelationship(i)
                Next
            Next
        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            OleMessageFilter.Revoke()
        End Try
    End Sub
End Module
See Also

FamilyMember Object  | FamilyMember Members  | Solid Edge ST3 - What's New