Skip to content

Add support for new creating newer schema entities to the EntityCreator #601

Open
@andyward

Description

@andyward

Xbim.Ifc.EntityCreator is a cross schema factory class enabling the correctly typed entities for a model to be created without specifying the concrete schema implementation. Currently it only supports Entity types in the lowest common denominator (IFC2x3)

So it doesn't support new entities in IFC4x3 (and also IFC4). E.g you can't create and IfcSensor or IfcRoad using the EntityCreator - you have to create these concretely. Clearly constructing these in IFC2x3 would make no sense but it would be nice to create a Sensor agnostic of the IFC schema being IFC4 or IFC4x3

Options:

  1. We support the highest schema and throw when not supported
  2. We extend the contract to have IsSchemaSupported<TInterface>() and a Create<TInterface>(Action<T>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions