mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-17 01:52:14 +00:00
copied Revit 2024 SDK
This commit is contained in:
@@ -493,7 +493,7 @@ namespace Revit.SDK.Samples.RebarFreeForm.CS
|
||||
Parameter paramCurveId = bar.LookupParameter(AddSharedParams.m_CurveIdName);
|
||||
if (paramCurveId == null)
|
||||
return null;
|
||||
ElementId id = new ElementId(paramCurveId.AsInteger());
|
||||
ElementId id = ElementId.Parse(paramCurveId.AsString());
|
||||
return data.GetDocument().GetElement(id) as CurveElement;
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user