XbimGeometry icon indicating copy to clipboard operation
XbimGeometry copied to clipboard

Setting model units

Open GVladislavG opened this issue 1 year ago • 3 comments

Hello, XBim team!

How can I set model units? It's millimeters by default. How to set meters for example?

Thanks!

GVladislavG avatar Apr 18 '24 13:04 GVladislavG

Assuming you mean the Project units? Have you seen how it's implemented here?:

https://github.com/xBimTeam/XbimEssentials/blob/4ed33f7a0427ea91bc7825810c381779ecf5053c/Xbim.Ifc4/Kernel/IfcProjectPartial.cs#L48

If you want Meters rather than Millimeters, you presumably just want to remove the IfcSIPrefix.MILLI prefix during project setup.

andyward avatar Apr 18 '24 16:04 andyward

Thanks! I set meters as units for Project. But now there is problem with showing model in viewers. I scaled all coordinates to meters while creating IFC-file. Test.zip

GVladislavG avatar Apr 19 '24 18:04 GVladislavG

You will need to be much more specific about the issues. In general, these would be data related issues, not Toolkit or IFC issues.

martin1cerny avatar May 06 '24 14:05 martin1cerny