Search code examples
autodesk-forgeifc

Are IfcOpeningElements available in Autodesk Forge after conversion from IFC to SVF?


I followed the View your models tutorial. IFC to SVF conversion works reasonably well. However, some essential elements are missing after conversion for construction. According to another SO question IfcSpaces are ignored but the the wish is already known to the development team.

Unfortunately, I could not find any informating regarding openings and SVF. Therefore, are IfcOpeningElements ignored by conversion as well?

Thanks.


Solution

  • Forge introduced a new feature for translating files with options for spaces and opening elements in the advanced options for the output: https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/job-POST/ Look under 'SVF Output Case 1: Input file type is IFC' for a detailed description.

    Example request body with IfcSpace and IfcOpeningElement activated for an IFC file:

    json_encode([
                'input' => [
                    'urn' => 'urlsafe_base64_encoded_urn'
                ],
                'output' => [
                    'formats' => [[
                        'type' => 'svf',
                        'views' => ['2d', '3d'],
                        'advanced' => [
                            'conversionMethod' => 'modern', // has to be modern for new options
                            'buildingStoreys' => 'show', // adds IfcBuildingStoreys to model
                            'spaces' => 'show', // adds IfcSpace to model
                            'openingElements' => 'show' // adds IfcOpeningElement to model
                        ]
                    ]]
                ]
            ]);
    

    Edit: Adds 's' to openingElements according to Petr Broz' comment.