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

API method: ILDXLandingDoor5.SetCompatible64

Treename: Shaft0.Entries1.E1.ShaftDoor.

 ' from Samples/Src/LDXAPIExamples/Example_LDXLandingDoor.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Entries1.E1.ShaftDoor.", "LDXLandingDoor~SetCompatible64", "Change width")>
 Public Shared Sub ChangeWidth(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

     If ldxDocument.GetLDXObject("Shaft0.Entries1.E2.ShaftDoor.") Is Nothing Then
         MsgBox("Desired landing door not found! Please reload the relevant .ld3 file.")
         Exit Sub
     End If

     Dim sourceLDXLandingDoor As DigiPara.LDX.LDXLandingDoor = DirectCast(ldxDocument.GetLDXObject("Shaft0.Entries1.E2.ShaftDoor.").LDXType, DigiPara.LDX.LDXLandingDoor)
     Dim targetLDXLandingDoor As DigiPara.LDX.LDXLandingDoor = DirectCast(ldxDocument.GetLDXObject("Shaft0.Entries1.E1.ShaftDoor.").LDXType, DigiPara.LDX.LDXLandingDoor)

     targetLDXLandingDoor.Change_DFP_GRP64(1)

     targetLDXLandingDoor.SetCompatible64(
Convert.ToDouble(sourceLDXLandingDoor.Door.DoorDimTab.GetValue("DD_DW")),
Convert.ToInt64(sourceLDXLandingDoor.Door.DoorTypeTab.GetValue("DT_RID")))
 End Sub