예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
 /// <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);
 }