PR: Implementing SitePlacement - method set_SitePlacement not found
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
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]
Hi @rayray4105,
Thank you for the detailed report and for providing your solution regarding the Nuget package dependency.
Our investigation, corresponding to the Jira ticket [REVIT-229874], indicates that our developers were unable to reproduce the issue on our internal setups.
To help us narrow down the scope of this problem and ensure we address it if it's still present in the public build:
Could you please check if the issue persists on the latest available version of the IFC Exporter for Revit 2024?
If you can still reproduce the bug, please provide the most detailed, step-by-step instructions (including any necessary setup or minimal working example) that allow you to consistently encounter the error. This information is crucial for our team to identify the root cause and accelerate the investigation.
Given that we cannot reproduce it on our end and you found a temporary workaround, we will proceed to close this issue for now. Please feel free to reopen it at any time and provide the requested detailed reproduction steps if the problem resurfaces or if you confirm it is still reproducible on the latest exporter version.
Thanks for your collaboration!