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

Extract geometry from stp file #474

Open
Batzinaa opened this issue Jan 5, 2023 · 4 comments
Open

Extract geometry from stp file #474

Batzinaa opened this issue Jan 5, 2023 · 4 comments

Comments

@Batzinaa
Copy link

Batzinaa commented Jan 5, 2023

Hi team,
Was wondering if it is possible to open an stp file with xbim toolkit and extract geometry from it on an ifc file. If so could u plz give me a hint

@Batzinaa
Copy link
Author

Batzinaa commented Jan 5, 2023

Update,
Trying To access .stp file from georgfischer's library by using the static function OpenReadStep21 of MemoryModel Class but it gives me the error System.NotSupportedException: 'Schema 'Unsupported' is not supported'. Is there any case i could access a file shuch this ?

@martin1cerny
Copy link
Member

What is the schema of the file? Can you share the file, or the header part at least?

@Batzinaa
Copy link
Author

Batzinaa commented Jan 5, 2023

This is the whole file am working on.

[AW: Deleted and re-uploaded as file since embedded STEP causes autolinks on all issues due to the hashes]
Issue 474.txt

@andyward
Copy link
Member

andyward commented Jan 5, 2023

No - not easily. STP and IFC-SPF may look similar and have a common heritage but have completely different schemas. STEP is really a whole family of standards for Engineering : ISO10303:21 - known as Part21.

STP is likely ISO 10303-242:2014 (or its predecessor: ISO10303-214:2010)
IFC is defined by ISO 16739-1:2018

They are both underpinned by EXPRESS schemas and Part 21. But each covers different domains. i.e STP is for Products, not buildings. So you won't find a [Ifc]Building, BuildingStorey or Window in STP. And a STP will have it's own specialist set of concepts.

So it would be a significant job:

  • Implement a new STP schema (e.g. Xbim.Step)
  • Extend the Geometry Engine for the different concepts/schemas (Xbim.Geometry.Step)
  • Implement some kind mapping between Step and IFC concepts

Many months of work I'd guess.

At the end of the day it comes down to use cases, what you want to achieve. If you just wanted to incorporate an STEP product in a IFC model there will be easier ways.

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