DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change 3D rendering texture

API method: ILDXVisualMaterial5.PGOGL_RID64

 ' from Samples/Src/LDXAPIExamples/Example_GroupsConfiguration.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "", "LDXVisualMaterial~PGOGL_RID64", "Change 3D rendering texture")>
    Public Shared Sub Change3DRenderingTexture(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.ShaftMaterials Is Nothing Or ldxDocument.ShaftMaterials.Count = 0 Then
            MsgBox("Valid sheet materials not found")
            Exit Sub
        End If

        ' 3D visual material properties
        With ldxDocument.ShaftMaterials(DigiPara.LDX.ShaftMaterial.smBrick).VisualMaterial
            ' Material id
            .PGOGL_RID64 = 48
            ' Angle
            .PGOGL_ANGLE = 45
            ' Scale
            .PGOGL_SCALE_WIDTH = 2000
            .PGOGL_SCALE_HEIGHT = 2000
        End With

    End Sub