How to get Length propery of a slab

I can get standard BIM properties from a slab with bim:get-property, like Composition and Load bearing, but not Slab Base Quantities like Length, Width.

How to get Length, Width etc. ?

If its possible I would like to get the Depth of the different plies.

If you have a solution: Thank you in advance,

Jan Cartigny

Comments

  • Hello.

    You could use something like this to get some dimensional BIM properties:

    (vl-load-bim)
    (setq length (bim:get-property <entity-name> "SlabLength"))
    (setq thk (bim:get-property <entity-name> "Thickness"))
    (setq width (bim:get-property <entity-name> "SlabWidth"))
    (setq width2 (bim:get-property <entity-name> "Width"))
    (setq depth (bim:get-property <entity-name> "SlabDepth"))

    Note that these properties are related to calculating quantities.
    Their values are approximative.
    These properties are not precise geometric properties.

    If the slab has a composition assigned, then the thickness won't be available.
    In this case you need to maintain a list with compositions and their thicknesses.
    There are no functions (not lisp functions, at least) to query the structure of a composition.

    You can find the name of the assigned composition using:

    (setq comp (bim:get-property <entity-name> "Composition"))