Ifd:ImportExportIfcPropertyset

From dev.ifd-library.org

Jump to: navigation, search

The following step by step guide is an introduction for how to import a property-set to IFD how to get the information out again.

 WORK IN PROGRESS. NOT FINISHED

Contents

[edit] Preparation

Before you can add or update properties and propertysets in Ifd you need to:

  1. Check if the relevant version of Ifc is avaiable as a language
  2. Check if the context for the relevant version of the Ifc schema exists, and that you are one of the owners.
    • Search for existing contexts using getContexts
    • Check if you are one of the owners by looking at the IfdContext.is_read_only attribute. If the value is TRUE you cannot add to the context. In that case you need to ask one of the existing owners to add you as an owner. If the value is FALSE you may use the context when creating relationships.
    • If there is no existing context for the relevant Ifc schema version then add it using this guide: Ifd:Adding the Ifc version as a context

[edit] Image:Starthere.png Finding or adding the propertyset itself

Propertysets are treated as collections in IFD. We will use the Nest concept type. Nests are collections of the same type. In this case; Properties.

Use the Ifd:searchForConcepts function to search for an existing propertyset with the same name. Please note that IFD can hold several versions of the IFC schema. If the relevant version of IFC isn't in IFD you will need to add it first.

Each version of Ifc is treated as a separate language in Ifd. This and a fixed naming convention ensures that you will get only one concept in return when querying Ifd using the relevant version of the Ifc schema as language and following the naming convention for entities and attributes from the Ifc model.

[edit] Image:Starthere.png Adding or finding the units for the properties

[edit] Image:Starthere.png Adding or finding the values for the properties

[edit] Image:Starthere.png adding or finding the properties