Skip to content

Commit

Permalink
Add baseline to Column
Browse files Browse the repository at this point in the history
  • Loading branch information
jozseflkiss committed Sep 8, 2023
1 parent b5fd27a commit be55cad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ await AsyncCommandProcessor.Execute(
column.displayValue =
Operations.ModelConverter.MeshesToSpeckle(elementModels.First(e => e.applicationId == column.applicationId)
.model);
//column.baseLine = ...
column.baseLine = new Line(column.origoPos, column.origoPos + new Point (0, 0, column.height));
columns.Add(column);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public ApplicationObject ColumnToNative(Column speckleColumn)
}
else
{
SetOffsets(revitColumn, level, topLevel, -baseOffset, -topOffset);
// this case is always line based, don't change offset for line based columns, it's automatic
}

var state = isUpdate ? ApplicationObject.State.Updated : ApplicationObject.State.Created;
Expand Down

0 comments on commit be55cad

Please sign in to comment.