Open rayray4105 opened 2 weeks ago
Our developers has a similar problem in 2023, 2024 and 2025
Should work via a JSON file - see #761
we have already tried but as mentioned in the ticket that does not work. The code runs fine but the model is not coordinated correctly (default location is used).
Dim ifcOpt As IFCExportOptions = New IFCExportOptions Dim selectedConfig As IFCExportConfiguration = IFCExportConfiguration.CreateDefaultConfiguration() ifcOpt.AddOption("SitePlacement", 2) selectedConfig.UpdateOptions(ifcOpt, activeViewId)
For now we have seemed to be able to resolve this issue by adding Nuget package: Revit_All_Main_Versions_IFC_x64
https://www.nuget.org/packages/Revit_All_Main_Versions_IFC_x64/2024.0.0?_src=template
Make sure you use the correct version.
[REVIT-229874]
Problem Description
Hi,
I am trying to implement the option 'Coordinate Base' in our export tool but I am running into a problem. After adding 'SitePlacement' to the exporter config I get the following error on execution. Am I missing a reference?
'Method not found: 'Void BIM.IFC.Export.UI.IFCExportConfiguration.set_SitePlacement(Revit.IFC.Common.Enums.SiteTransformBasis)'.'
Dim selectedConfig As IFCExportConfiguration = IFCExportConfiguration.CreateDefaultConfiguration() selectedConfig.SitePlacement = Enums.SiteTransformBasis.Project
Using AddOption does not give an error but does not position the model correctly (so it does not work). Dim ifcOpt As IFCExportOptions = New IFCExportOptions ifcOpt.AddOption("SitePlacement", "2")
Using the UI we can set the Coordinate Base and export how it is supposed to be.
regards, Raymond
Revit Version
2024.0.x
IFC for Revit Addon Version
24.x.x
Windows Version
11 22H2