Coder Social home page Coder Social logo

userdefuned about ids HOT 6 CLOSED

rubendel avatar rubendel commented on August 27, 2024
userdefuned

from ids.

Comments (6)

berlotti avatar berlotti commented on August 27, 2024 3

We are trying to move away from user-defined types (and in IFC 5 even from predefined-types).
Best practise is to use/add a classificationreference to the IFC class to further specify it.
The best-practise guidelines for IDS might change in 1.1 to reflect this movement.

from ids.

CBenghi avatar CBenghi commented on August 27, 2024

Quite right, I'll address that, apologies.

from ids.

enzoaggazioALMA avatar enzoaggazioALMA commented on August 27, 2024

The ids file in test case is probably wrong, the tag:

<predefinedType>
           <simpleValue>USERDEFINED</simpleValue>
</predefinedType>

must be replaced with:

<predefinedType>
           <simpleValue>WALDO</simpleValue>
</predefinedType>

from ids.

andyward avatar andyward commented on August 27, 2024

The ids file in test case is probably wrong, the tag:

<predefinedType>
           <simpleValue>USERDEFINED</simpleValue>
</predefinedType>

must be replaced with:

<predefinedType>
           <simpleValue>WALDO</simpleValue>
</predefinedType>

I think the test is right. What's the requirement is trying to test is that the entities have a PreDefinedType of USERDEFINED - but we don't want to check the specific user-defined type provided in ObjectType/ElementType etc.

i.e. we're checking for .USERDEFINED. not WALDO
image

There are separate test cases that test for checking specific User Defined Type values etc. e.g. pass-a_predefined_type_may_specify_a_user_defined_object_type.ids and fail-user_defined_types_are_checked_case_sensitively.ids

from ids.

enzoaggazioALMA avatar enzoaggazioALMA commented on August 27, 2024

To check the predefined type attribute, we could test this way:

 <requirements>
        <attribute>
          <name>
            <simpleValue>PredefinedType</simpleValue>
          </name>
          <value>
            <simpleValue>WALDO</simpleValue>
          </value>
        </attribute>
      </requirements>

from ids.

andyward avatar andyward commented on August 27, 2024

Best practise is to use/add a classificationreference to the IFC class to further specify it.
Agreed - When everything is classified that's where Classification Facets come in of course.

@enzoaggazioALMA

To check the predefined type attribute, we could test this way:
[using an attribute facet]
Presumably with :

...
<value>
   <simpleValue>UNDEFINED</simpleValue> <!-- rather than WALDO-->
</value>

While this may work, it's worth noting that I believe the Entity Predefined Type logic should check the DefiningType as well as the instance. So for instance in IFC2x3 an IFCWALL has no PredefinedType - it's on the IFCWALLTYPE. So you may get subtle differences accessing via Attribute facet

from ids.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.