use ifcGrid in Axis System

This forum section is only for IFC-related issues
Post Reply
pdpb59
Posts: 28
Joined: Thu Feb 18, 2021 1:43 pm
Location: Saarbrücken

use ifcGrid in Axis System

Post by pdpb59 »

How can I use the ifcType Grid with the axis system?

Peter
Attachments
128-Objekte-IFCGrid.JPG
128-Objekte-IFCGrid.JPG (109.04 KiB) Viewed 6506 times
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: use ifcGrid in Axis System

Post by bernd »

Would you like to create a axis in FreeCAD and export as IfcGrid or would you like to import a IfcGrid from ifc into FreeCAD and use it as axis object in FreeCAD?
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: use ifcGrid in Axis System

Post by bernd »

bernd wrote: Fri Feb 17, 2023 11:52 am Would you like to create a axis in FreeCAD and export as IfcGrid ...
I assume this one ...

There is no need to tell a FreeCAD axis system it should be IfcGrid. All this is done in background and axis should be exported in IfcGrid. But it seams there are problems ... There is some IfcGrid in ifc but neither zoom nor vision does show the grid system ... examples attached.

Someone with special ifc knowledge around? What is wrong in the ifc with the IfcGrid?


axistest.ifc
(4.54 KiB) Downloaded 67 times

axistest.FCStd
(21.18 KiB) Downloaded 68 times
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: use ifcGrid in Axis System

Post by bernd »

this one works ... Do not ask me why, I have no idea ATM ...


ifcgrid_another_example.ifc
(9.11 KiB) Downloaded 72 times

ifcgrid_another_example.FCStd
(31.96 KiB) Downloaded 64 times

screen1.png
screen1.png (98.13 KiB) Viewed 6040 times

screen.png
screen.png (40.22 KiB) Viewed 6037 times
pdpb59
Posts: 28
Joined: Thu Feb 18, 2021 1:43 pm
Location: Saarbrücken

Re: use ifcGrid in Axis System

Post by pdpb59 »

Hi,
I want to transfer axes from FreeCAD to IFC and wanted to specify the IFC type.

In the second step I noticed that if I have an axis system, the type ifcGrid is automatically used during the export and is cleanly entered into the ifc file.

But in the properties of the grid the IFC type is not shown.

With single axes no export takes place.
Peter
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: use ifcGrid in Axis System

Post by bernd »

you will not believe it ... One needs to add at least two axis objects to the axis system to get the whole axis system exported to ifc. Watch in the report text. The axis object must be written on exported objects ...


axistest2.ifc
(5.95 KiB) Downloaded 67 times

axistest2.FCStd
(23.79 KiB) Downloaded 67 times

screen1.png
screen1.png (155.43 KiB) Viewed 6010 times

screen2.png
screen2.png (41.17 KiB) Viewed 6010 times
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: use ifcGrid in Axis System

Post by bernd »

It seams IfcGrid need to have two axis sub systems ... I am not 100 % sure if the problem is ifc standard or IfcOpenShell, but if None is passed to IfcOpenShell for v it returns an error. https://github.com/FreeCAD/FreeCAD/blob ... FC.py#L502


A warning has been added ... git commit 5888edef058be0


https://standards.buildingsmart.org/IFC ... fcgrid.htm
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: use ifcGrid in Axis System

Post by bernd »

The axis system does not need to be part of the IfcSite, but do not forget to select the axis syste on export if it is not Part of the IfcSite.

Do not forget ot switch debug messages on in IFC preferences to get the warnings on report console.
Post Reply