mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-16 10:34:07 +00:00
copied Revit 2024 SDK
This commit is contained in:
@@ -152,10 +152,9 @@ namespace ExtensibleStorageUI
|
||||
|
||||
public object Parse(string value, Autodesk.Revit.DB.Document document, Autodesk.Revit.DB.UnitType unitType, Autodesk.Revit.DB.DisplayUnitType outputDisplayUnitType)
|
||||
{
|
||||
int tempid;
|
||||
if(!int.TryParse(value, out tempid))
|
||||
ElementId eid;
|
||||
if(!ElementId.TryParse(value, out eid))
|
||||
return null;
|
||||
ElementId eid = new ElementId(tempid);
|
||||
|
||||
Element e = document.GetElement(eid);
|
||||
if (e == null)
|
||||
@@ -347,10 +346,9 @@ namespace ExtensibleStorageUI
|
||||
List<ElementId> elementids = new List<ElementId>();
|
||||
for (int i = 0; i < elementidmain.Length; i++)
|
||||
{
|
||||
int tempid;
|
||||
if (!int.TryParse(elementidmain[i].ToString() , out tempid))
|
||||
ElementId eid;
|
||||
if (!ElementId.TryParse(elementidmain[i].ToString() , out eid))
|
||||
return null;
|
||||
ElementId eid = new ElementId(tempid);
|
||||
|
||||
Element e = document.GetElement(eid);
|
||||
if (e == null)
|
||||
|
||||
Reference in New Issue
Block a user