Comments and answers for "How to read custom IFC properties" https://knowledge.亚搏在线safe.com/questions/77881/how-to-read-custom-ifc-properties.html The latest comments and answers for the question "How to read custom IFC properties" Comment by sealjackii on sealjackii's comment https://knowledge.safe.com/comments/100279/view.html

Thanks Dave.

Mon, 14 Oct 2019 07:49:28 GMT sealjackii
Comment by daveatsafe on daveatsafe's comment https://knowledge.safe.com/comments/100231/view.html

Hi@sealjackii,

The TraitMerger is similar in purpose to the FeatureMerger, but allows you to join on traits instead of attributes, so you can skip the step of extracting the trait to an attribute first.

I'm not sure it will be useful for working with the IFC data, unless there is a need to merge feature types.The useful traits are buried quite far down in the geometry hierarchy.

Fri, 11 Oct 2019 16:48:51 GMT daveatsafe
Comment by sealjackii on sealjackii's comment https://knowledge.safe.com/comments/100187/view.html

Hi@daveatsafe, I'm curious if this can be done by TraitMerge to make it easier as I just read about this transformer.By the help doc, it sounds it can copy traits to joined feature as attributes.That sounds a right hit to bring out the geometry traits as feature attributes.However, I just tried it with the same IFC data I was working on, the requestor type is Attribute, the Supplier Type is Trait, and I left Supplier Geometry Part Selection blank to let it scan all geometry parts.You could see from the screenshot it has found some matches, however, the output feature didn't show any new attributes created and populated from the traits.I'm wondering whether I misunderstood the way to use this transformer....thanks.


Fri, 11 Oct 2019 12:44:47 GMT sealjackii
Comment by sealjackii on sealjackii's comment https://knowledge.safe.com/comments/99923/view.html

Aha, thanks a lot Dave!your reply helps me understanding better how FME reading IFC data.Also, I like the fact that by using the Attribute Expose I could import the list of the names from another data source, for example, a CSV file that created by a python script that extracts all 200+/- attribute names from the IFC file.happy day!: )

Tue, 08 Oct 2019 07:40:56 GMT sealjackii
Comment by daveatsafe on daveatsafe's comment https://knowledge.safe.com/comments/99833/view.html

Hi@sealjackii,

If you enabled Prefix Extracted Trait with Geometry Name (which I recommend), the attribute will be named '12d Model.Date'.Please try exposing that instead of 'Date'

Fri, 04 Oct 2019 16:11:26 GMT daveatsafe
Comment by sealjackii on sealjackii's answer https://knowledge.safe.com/comments/99792/view.html

Hi@daveatsafe, thanks first for the suggestion.I tried it however without success.As the screenshot, I could see the attribute but the value didn't show up in the table after the AttributeExposer transformer.Wondering what I missed there.

Interestingly, I manually added the attributes to 'Traits to extract;list in the GeometryPropertyExtractor, (no need to use AttributeExposer), I did get the attribute value populated in the output table.However, as I have about 30-50 attributes to extract, I'm wondering if by taking your method it could automatically extract all traits instead of manually enter them one by one.

Fri, 04 Oct 2019 06:55:32 GMT sealjackii
Answer by fransknibbe https://knowledge.safe.com/answers/78037/view.html

Thank you@DaveAtSafe!Your help was very useful, I have succeeded in what I tried to do.I should especially mention the usefulness of the Inspector transformer, because in one case the names of the custom properties were prefixed with the name of the (custom) property set, and in another case no prefix was added.

Greetings,

Frans

Fri, 07 Sep 2018 09:19:43 GMT fransknibbe
Answer by daveatsafe https://knowledge.safe.com/answers/77915/view.html

Hi@fransknibbe,

The Property Set information in the IFC file is stored as traits in the geometry hierarchy, rather than as feature attributes.To promote the properties to attributes, please use a GeometryPropertyExtractor transformer.

Leave 'Trait to Extract' blank to extract all the traits, but set 'Prefix Extracted Trait with Geometry Name' to yes.This will prefix each property with the property set name.This transformer will not expose the new attribute to Workbench, so you will need to add an AttributeExposer.You can use an Inspector transformer to view the features and the new attributes.

Alternatively, you could use the Revit reader, with the 'Building Elements with Hierarchy' data view to read the IFC file.The data views automatically do the property extraction, and simplify the geometry for better conversion to GIS.The Revit reader defaults to a .rvz file (which is basically a zipped IFC), but can read .ifc files as well.

Wed, 05 Sep 2018 23:41:09 GMT daveatsafe