DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Show developer sub objects

API method: ILDXDevConfiguration5.DevMode

Treename: Shaft0.

 ' from Samples/Src/LDXAPIExamples/Example_LDXDevConfiguration.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.", "LDXDevConfiguration~DevMode", "Show developer sub objects")>
    Public Shared Sub ShowDeveloperSubObjects(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.") Is Nothing Then
            MsgBox("Shaft not found!")
            Exit Sub
        End If

        If ldxDocument.GetLDXObject("Sheets.LdvSheet1.LdvFrame2.") Is Nothing Then
            MsgBox("There is no valid sheet frame for this example. Please reload the relevant .ld3 file.")
            Exit Sub
        End If
        With DirectCast(ldxDocument.GetLDXObject("Sheets.LdvSheet1.LdvFrame2.").LDXType, DigiPara.LDX.LDXSheetFrame)
            ' Enable developer frame
            .FrameMode2 = .FrameMode2 Or DigiPara.LDX.SheetFrameModes2.shfrm2DeveloperFrame
            ' Show shaft
            ldxDocument.Configuration.ComponentName = "Shaft0."
            ' Rotate car frame 
            For index = 0 To 6
                .View3D(DigiPara.LDX.SheetFrame3DType.shf3RotZMinus)
            Next
            .View3D(DigiPara.LDX.SheetFrame3DType.shf3RotXyMinus)
            .View3D(DigiPara.LDX.SheetFrame3DType.shf3RotXyMinus)
            ' Show sub objects
            .Object.Document.Configuration.DevMode = DigiPara.LDX.DevModes.devmShowDeveloperSubobjects
        End With

    End Sub