DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change 3D view surface properties

API method: ILDXComp5.PGOGL_RID64

2 code examples follow.

Example 1: Change 3D view surface properties

 ' from Samples/Src/LDXAPIExamples/Example_LDXComp.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "", "LDXComp~PGOGL_RID64", "Change 3D view surface properties")>
    Public Shared Sub Change3DViewSurfaceProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

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

        With ldxDocument.Shafts(0)
            ' Change the material
            .Comp.VisualMaterial.PGOGL_RID64 = 49
            .MachineRoom.Comp.RID64 = 49
            ' Change the angle
            .Comp.VisualMaterial.PGOGL_ANGLE = 90
            .MachineRoom.Comp.VisualMaterial.PGOGL_ANGLE = 90
            ' Change the scale
            .Comp.VisualMaterial.PGOGL_SCALE_WIDTH = 2000
            .Comp.VisualMaterial.PGOGL_SCALE_HEIGHT = 2000
            .MachineRoom.Comp.VisualMaterial.PGOGL_SCALE_WIDTH = 2000
            .MachineRoom.Comp.VisualMaterial.PGOGL_SCALE_HEIGHT = 2000
        End With

    End Sub

Example 2: Change 3D view surface properties

 ' from Samples/Src/LDXAPIExamples/Example_LDXShaft.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.", "LDXComp~PGOGL_RID64", "Change 3D view surface properties")>
 Public Shared Sub Change3DViewSurfaceProperties(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

     If ldxDocument.Shafts(0) Is Nothing Then
         MsgBox("Shafts not found!")
         Exit Sub
     End If

     With ldxDocument.Shafts(0).Comp.VisualMaterial
         ' Change the material
         .PGOGL_RID64 = 49
         ' Change the angle
         .PGOGL_ANGLE = 90
         ' Change the scale
         .PGOGL_SCALE_WIDTH = 2000
         .PGOGL_SCALE_HEIGHT = 2000
         ' Align locally
         .PGOGL_MODE = DigiPara.LDX.CompOglMode.opmAlignLocal
     End With

 End Sub