Skip to content

Commit

Permalink
FromElementId
Browse files Browse the repository at this point in the history
  • Loading branch information
kike-garbo committed Dec 20, 2024
1 parent a5993d4 commit 9c83135
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,24 +182,21 @@ protected override void TrySolveInstance(IGH_DataAccess DA)
StartTransaction(doc.Value);
settings.BoundaryConditionFamilySymbolPinned = pinnedSymbol.Id;
}
Params.TrySetData(DA, "Pinned",
() => doc.Value.GetElement(settings.BoundaryConditionFamilySymbolPinned) as ARDB.FamilySymbol);
Params.TrySetData(DA, _Pinned_, () => Types.FamilySymbol.FromElementId(doc.Value, settings.BoundaryConditionFamilySymbolPinned));

if (rollerSymbol is object)
{
StartTransaction(doc.Value);
settings.BoundaryConditionFamilySymbolRoller = rollerSymbol.Id;
}
Params.TrySetData(DA, "Roller",
() => doc.Value.GetElement(settings.BoundaryConditionFamilySymbolRoller) as ARDB.FamilySymbol);
Params.TrySetData(DA, _Roller_, () => Types.FamilySymbol.FromElementId(doc.Value, settings.BoundaryConditionFamilySymbolRoller));

if (userSymbol is object)
{
StartTransaction(doc.Value);
settings.BoundaryConditionFamilySymbolUserDefined = userSymbol.Id;
}
Params.TrySetData(DA, "User",
() => doc.Value.GetElement(settings.BoundaryConditionFamilySymbolUserDefined) as ARDB.FamilySymbol);
Params.TrySetData(DA, _User_, () => Types.FamilySymbol.FromElementId(doc.Value, settings.BoundaryConditionFamilySymbolUserDefined));
}
}
}

0 comments on commit 9c83135

Please sign in to comment.