Open pinsonnj opened 7 years ago
To get geometry, you have to explicitly put it in your query, like this:
{
"type": "IfcProduct",
"includeAllSubtypes": true,
"includes": [
"validifc:OwnerHistory",
"validifc:Representation",
"validifc:ObjectPlacement"
]
}
This will include all subtypes of IfcProduct. For every IfcProduct it will also include the OwnerHistory (required to make it a valid IFC file), Representation (the geometry) and the ObjectPlacement (rqeuired to get the object in the right 3D place/orientation).
Mind you, the IFC XML serialization has not been tested well lately, so expect bugs, we will however make sure it's fully working when we release 1.5.
ok thanks for the input :)
Actually since the 3D view is refreshing I was expecting the same render in my output file. It's a bit confusing.
I got a correct XML this time but it apears old serializers are buggy as you said like collada one :
GeometryInfo geometryInfo = ifcProductObject.getGeometry();
return null whatever parameters I set...
The Collada plugin is even older, we hope one day someone will adopt the project. For our projects we don't need a Collada serializer anymore, so not really an incentive there.
On the geometry, the thing is that BIMvie.ws is doing 2 separate queries for performance reasons, that's why you don't have to include it in the initial query. Basically by clicking the "Eye" icon, you alter the query that is eventually executed.
Hi Ruben,
When making a query using bimvie, geometries are not included. For example using
I get using IFC XML a file containing only Ids, Names, Descriptions and Types
whereas I get Representation and ObjectPlacement while using the download button in three dropdown.
Is there an argument missing in my query ? I also tested others parsers and got the same result...
Thank you