Skip to content
  • Categories
Collapse
Solibri Society Forum
  1. Home
  2. General Discussion
  3. Defined Type Check

Defined Type Check

Scheduled Pinned Locked Moved General Discussion
checkingifcdefinedtype
7 Posts 3 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • paola bronzoP Offline
    paola bronzoP Offline
    paola bronzo
    wrote on last edited by
    #1

    Hello everyone,

    does anyone know a way to check that the attributes have the correct “data type”?
    For example checking that the “Cost” Attribute is an IFCREAL and not an IFCTEXT.

    179a5ee8-b04f-4c1d-9963-55406e363354-immagine.png

    Below the reference of the Building Smart page:

    https://standards.buildingsmart.org/IFC/RELEASE/IFC4/ADD2_TC1/HTML/schema/ifcmeasureresource/lexical/ifcsimplevalue.htm

    cdc98d8e-bb88-4f44-b1b2-d5e1593f79bf-immagine.png

    Thanks!
    Paola

    1 Reply Last reply
    0
    • agroniA Offline
      agroniA Offline
      agroni
      wrote on last edited by
      #2

      I wonder why would you want to check the semantic definitions in an IFC Structure?
      The difference of saving that Cost as an IfcReal vs IfcLabel, is that with IfcReal it will always be a Real Number, whereas in an IfcText of IfcLabel it could be an alphanumerical value.
      Nonetheless it is not excluded that an IfcLabel for the CostProperty could be correct.

      My suggestion would be to use SOL/230/1.1 and to check if the Property Cost is a decimal value >0. All deviating values with letters or other characters should be reported as an error. In this case you should not care if that property is an IfcReal of IfcLabel, as long as the numbers fit

      AllesWirdGut Architecture
      www.awg.at

      1 Reply Last reply
      0
      • paola bronzoP Offline
        paola bronzoP Offline
        paola bronzo
        wrote on last edited by
        #3

        Hi @agroni !
        I agree with you that it is not excluded that an Ifc Label for the CostProperty could be correct, but if I want to check the Cost is > 0 and the Bim Specialist assigns an attribute IfcLabel to the element when in Solibri I use the #230 or #203, checking will still report the error:
        IfcLabel.jpg

        the error does not appear if the attribute is exported correctly as a number:
        IfcReal.jpg

        This shows that the rules secretly analyze the “defined type” attribute. It would be useful if it was also reported in the result’s description or or that there was a specially programmed rule.

        1 Reply Last reply
        0
        • JSNJ Offline
          JSNJ Offline
          JSN
          wrote on last edited by JSN
          #4

          @paola-bronzo said in Defined Type Check:

          I agree with you that it is not excluded that an Ifc Label for the CostProperty could be correct, but if I want to check the Cost is > 0 and the Bim Specialist assigns an attribute IfcLabel to the element when in Solibri I use the #230 or #203, checking will still report the error:

          #230 is a diva and does not work sometimes - try it with #203 as it seems to be more robust and should work for labels too.

          637efe5e-c402-460b-a4d7-bf6a85d7d616-image.png

          However, take care that you really have a numeric vlaue like “200” and not "200 " with invisible blank spaces.

          agroniA 1 Reply Last reply
          1
          • paola bronzoP Offline
            paola bronzoP Offline
            paola bronzo
            wrote on last edited by
            #5

            Thanks @JSN for your suggestion.
            Here https://society.solibri.com/topic/1116/import-excel-worksheet-rule-203 I have just reported an anomaly about it.

            1 Reply Last reply
            0
            • agroniA Offline
              agroniA Offline
              agroni
              replied to JSN on last edited by
              #6

              @jsn
              Also a good approach with #203.
              I am curious in which instances in your opinion does the #230 not work??? I use quite in a lot of cases and so far have seen no discrepancies.

              AllesWirdGut Architecture
              www.awg.at

              JSNJ 1 Reply Last reply
              1
              • JSNJ Offline
                JSNJ Offline
                JSN
                replied to agroni on last edited by JSN
                #7

                @agroni said in Defined Type Check:

                I am curious in which instances in your opinion does the #230 not work???

                Well, the example from Paola above demonstrates it - it seems to me that this rule does not work and I just even tried it to test again - with the same result and I don’t see any mistake in this quick example.

                25fc005a-a6d4-482a-a1b3-f66dab3fa825-image.png

                But then again, I am pretty sure I have also used it as you described it and ran into the same weird results a while ago - searching for alternatives for such use cases I now always rely on #203 as I lost my faith in #230 in that specific context.

                1 Reply Last reply
                3

                Copyright © 2025 Solibri Inc. | Powered by NodeBB

                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories