Skip to content

Commit

Permalink
fix issue origin fabrication parts
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Dec 11, 2023
1 parent 0e0f002 commit 28b3528
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OpenMEPRevit/Element/Element.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ private Element()
{
if (element == null)
throw new ArgumentNullException(nameof(element));
if (element.InternalElement is Autodesk.Revit.DB.FabricationPart fabricationPart)
{
return fabricationPart.Origin.ToPoint();
}
if (element.InternalElement.Location is LocationPoint)
{
LocationPoint? lc = element.InternalElement.Location as LocationPoint;
Expand Down

0 comments on commit 28b3528

Please sign in to comment.