Solid Edge Part Type Library
LiveRule Property
Description
Turns a live rule on or off.
Property type
Read-write property
Syntax
Visual Basic
Public Property LiveRule( _
   ByVal LiveRule As LiveRulesConstants _
) As Boolean
Parameters
LiveRule
ValueDescription
igConcentricLiveRuleMaintain concentric relations
igCoplanarAxesAboutXLiveRule
igCoplanarAxesAboutYLiveRule
igCoplanarAxesAboutZLiveRule
igCoplanarAxesLiveRuleMaintain coplanar Axes. Always on for live rules in an FOP and cannot be turned off.
igCoplanarLiveRuleMaintain coplanar relations
igMaintainRadiusLiveRuleMaintain same radius if possible
igOrthoLockingLiveRuleMaintain orthogonal to base if possible
igParallelLiveRuleMaintain parallel relations
igPerpendicularLiveRuleMaintain perpendicular relations
igSymmetricLiveRuleMaintain symmetric relations
igSymmetricXYLiveRuleMaintain symmetric relations based on XY plane
igSymmetricYZLiveRuleMaintain symmetric relations based on YZ plane
igSymmetricZXLiveRuleMaintain symmetric relations based on ZX plane
igTangentEdgeLiveRuleMaintain connected tangent relations
igTangentTouchingLiveRuleMaintain touching tangent relations
igThicknessChainLiveRule
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

        Try
            OleMessageFilter.Register()

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

            For Each objFamilyMember In objFamilyMembers
                ' Determine if specified LiveRule is enabled.
                If Not objFamilyMember.LiveRule(SolidEdgePart.LiveRulesConstants.igConcentricLiveRule) Then
                    ' Enable specified LiveRule.
                    objFamilyMember.LiveRule(SolidEdgePart.LiveRulesConstants.igConcentricLiveRule) = True
                End If
            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