DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change shaft material

API method: ILDXSheetFrameSection5.ShaftMaterial

Treename: Sheets.

 ' from Samples/Src/LDXAPIExamples/Example_LDXSheetFrameSection.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Sheets.", "LDXSheetFrameSection~ShaftMaterial", "Change shaft material")>
 Public Shared Sub ChangeShaftMaterial(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Sheets.LdvSheet1.LdvFrame2.Sections.") Is Nothing Then
            MsgBox("Desired sheet frame not found! Please reload the relevant .ld3 file.")
            Exit Sub
        End If

        With DirectCast(ldxDocument.GetLDXObject("Sheets.LdvSheet1.LdvFrame2.Sections.").LDXType, DigiPara.LDX.LDXSheetFrameSections).GetOrCreateByVolumeIndex(0)
            .ShaftMaterial.HATCH = "BRICK"
            .ShaftMaterial.ANGLE = 0
            .ShaftMaterial.Scale = 10
        End With

    End Sub