Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting model units #472

Open
GVladislavG opened this issue Apr 18, 2024 · 3 comments
Open

Setting model units #472

GVladislavG opened this issue Apr 18, 2024 · 3 comments

Comments

@GVladislavG
Copy link

Hello, XBim team!

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

Thanks!

@andyward
Copy link
Member

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.

@GVladislavG
Copy link
Author

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

@martin1cerny
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants