xBimTeam / XbimEssentials

A .NET library to work with data in the IFC format. This is the core component of the Xbim Toolkit
https://xbimteam.github.io/
Other
485 stars 172 forks source link

Extract geometry from stp file #474

Open Batzinaa opened 1 year ago

Batzinaa commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

Batzinaa commented 1 year ago

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 commented 1 year ago

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:

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.