DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Change location

API method: ILDXLoadHook5.LOADHOOK_MODE

Treename: Shaft0.Entries1.UBolt.

 ' from Samples/Src/LDXAPIExamples/Example_LDXLoadHook.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Entries1.UBolt.", "LDXLoadHook~LOADHOOK_MODE", "[0390] Change location")>
    Public Shared Sub ChangeLocation(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

        If ldxDocument.GetLDXObject("Shaft0.Entries1.UBolt.") Is Nothing Then
            MsgBox("Load hook in front entry not found! Please reload the relevent .ld3 object.")
            Exit Sub
        End If

        With ldxDocument.GetLDXObject("Shaft0.Entries1.UBolt.")
            .SetValue("LOADHOOK_MODE", DigiPara.LDX.LoadHookModes.lhmGetPgParameterOfParent Or DigiPara.LDX.LoadHookModes.lhmPlaceZInShafthead Or
                      DigiPara.LDX.LoadHookModes.lhmPlaceYByOwner Or DigiPara.LDX.LoadHookModes.lhmPlaceXByOwner)
            .SetValue("DX", 500)
            .SetValue("DY", 200)
            If ldxDocument.GetLDXObject("Shaft0.MachineryRoom.") Is Nothing Then
                .SetValue("DZ", ldxDocument.Shafts(0).MachineRoom.Room.Height + ldxDocument.Shafts(0).MachineRoom.Room.ALTERNATIVE_MATERIAL_FLOOR_HEIGHT)
            End If
        End With

    End Sub