DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Modify Class BIM Settings

API method: ILDXDocumentBIMSettings5.ClassBIMSettingsByObject

Treename: Shaft0.Car.BIMSettings.

 ' from Samples/Src/LDXAPIExamples/Example_LDXBIMProperties.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.BIMSettings.", "LDXDocumentBIMSettings~ClassBIMSettingsByObject", "Modify Class BIM Settings")>
 Public Shared Sub ClassBIMSettings(ByRef ldxDocument As DigiPara.LDX.LDXDocument)

     InitializeDocumentBIMSettings(ldxDocument)

     Dim ldxObject As DigiPara.LDX.LDXObject
     Dim DocumentBIMSettings As DigiPara.LDX.LDXDocumentBIMSettings
     Dim ClassBIMSettings As DigiPara.LDX.LDXClassBIMSettings

     DocumentBIMSettings = ldxDocument.DocumentBIMSettings

     ' fetch a door
     ldxObject = ldxDocument.Shafts(0).GetEntries(1).Item(0).LandingDoor.Object

     ' the easiest way to always get the class properties relevant to an object is this:
     ClassBIMSettings = DocumentBIMSettings.ClassBIMSettingsByObject(ldxObject)

     ' but if you already know the class, you can look them up by ObjectId as well
     ClassBIMSettings = DocumentBIMSettings.ClassBIMSettingsByObjectId(DigiPara.LDX.ObjectId.idLandingDoor)

     ' this gives all LDXLandingDoors a different prototype family for LDBIM exports
     ClassBIMSettings.BIMSettings.BFT_RID = 400300002

     ' and you can also set default BIMExportMode flags for all LDXLandingDoors. Each can be overridden
     ' at the object level.

     ' enable export of BIM properties for all landing doors
     ClassBIMSettings.IndividualBIMSettings.ExportPropertiesEnabled = True

     ' all the above flags have an ...Disabled cousin you can use to explicitly disable the corresponding properties; this is mostly useful at the object BIM property level
     ' where you can override the behavior defined in ClassBIMSettings.

     ' has no effect currently, but it is always good form to inform of changes
     ClassBIMSettings.Object.SendChangeNotification("", "")
 End Sub