Compare commits

...

2 Commits

Author SHA1 Message Date
Björn Steinhagen 1a7bea9227 Merge branch 'dev' into bjorn/cnx-3164-missing-true-north-rotation-in-revit-connector-export
.NET Build and Publish / build-connectors (push) Has been cancelled
.NET Build and Publish / deploy-installers (push) Has been cancelled
2026-03-25 22:20:05 +02:00
Björn Steinhagen 9c4007d55b feat(revit): add shared location reference point setting 2026-03-25 22:17:00 +02:00
4 changed files with 11 additions and 2 deletions
@@ -83,6 +83,10 @@ public class ToHostSettingsManager : IToHostSettingsManager
switch (referencePointType)
{
case ReceiveReferencePointType.SharedLocation:
referencePointTransform = uiApplication.ActiveUIDocument.Document.ActiveProjectLocation.GetTransform();
break;
// note that the project base (ui) rotation is registered on the survey pt, not on the base point
case ReceiveReferencePointType.ProjectBase:
if (projectPoint is not null)
@@ -201,6 +201,9 @@ public class ToSpeckleSettingsManager(
switch (referencePointType)
{
case ReferencePointType.SharedLocation:
referencePointTransform = document.ActiveProjectLocation.GetTransform();
break;
// note that the project base (ui) rotation is registered on the survey pt, not on the base point
case ReferencePointType.ProjectBase:
if (projectPoint is not null)
@@ -5,5 +5,6 @@ public enum ReceiveReferencePointType
Source,
InternalOrigin,
ProjectBase,
Survey
Survey,
SharedLocation
}
@@ -4,5 +4,6 @@ public enum ReferencePointType
{
InternalOrigin,
ProjectBase,
Survey
Survey,
SharedLocation
}