/// <summary> /// Initialize a Pipe element /// </summary> /// <param name="instance">The instance.</param> private void InitObject(Autodesk.Revit.DB.Plumbing.Pipe instance) { Autodesk.Revit.DB.MEPCurve fi = instance as Autodesk.Revit.DB.MEPCurve; InternalSetMEPCurve(fi); }
/// <summary> /// Internals the set mep curve. /// </summary> /// <param name="fi">The MEPCurve instance</param> protected void InternalSetMEPCurve(Autodesk.Revit.DB.MEPCurve fi) { this.InternalMEPCurve = fi; this.InternalElementId = fi.Id; this.InternalUniqueId = fi.UniqueId; }
/// <summary> /// Initialize a CableTray element. /// </summary> /// <param name="instance"></param> private void InitObject(Autodesk.Revit.DB.Electrical.CableTray instance) { Autodesk.Revit.DB.MEPCurve fi = instance as Autodesk.Revit.DB.MEPCurve; InternalSetMEPCurve(fi); }
/// <summary> /// Initialize a Duct element /// </summary> /// <param name="instance">The instance.</param> private void InitPipe(Autodesk.Revit.DB.Mechanical.Duct instance) { Autodesk.Revit.DB.MEPCurve fi = instance as Autodesk.Revit.DB.MEPCurve; InternalSetMEPCurve(fi); }