DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Set buffer at frame

API method: ILDXMoveFrame5.BufferAtFrame

Treename: Shaft0.CW.Weight.

 ' from Samples/Src/LDXAPIExamples/Example_LDXCWFrame.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.CW.Weight.", "LDXMoveFrame~BufferAtFrame", "Set buffer at frame")>
    Public Shared Sub SetBufferAtFrame(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.CW.Weight.Buffer0.") Is Nothing Then
            MsgBox("Desired counter weight frame buffer not found! Please reload the relevant .ld3 file.")
            Exit Sub
        End If

        Dim ldxMoveFrame As DigiPara.LDX.LDXMoveFrame = ldxDocument.Shafts(0).CWConsole.CWFrame.MoveFrame

        ldxMoveFrame.BufferAtFrame = True

    End Sub