/// <summary> /// Internals the type of the set piping system. /// </summary> /// <param name="type">The type.</param> private void InternalSetPipingSystemType(Autodesk.Revit.DB.Plumbing.PipingSystemType type) { if (InternalMEPCurve.MEPSystem.GetTypeId().IntegerValue.Equals(type.Id.IntegerValue)) { return; } TransactionManager.Instance.EnsureInTransaction(DocumentManager.Instance.CurrentDBDocument); InternalMEPCurve.get_Parameter(BuiltInParameter.RBS_PIPING_SYSTEM_TYPE_PARAM).Set(type.Id); TransactionManager.Instance.TransactionTaskDone(); }
/// <summary> /// Internals the type of the set mep curve. /// </summary> /// <param name="type">The type.</param> protected void InternalSetMEPCurveType(Autodesk.Revit.DB.MEPCurveType type) { if (InternalMEPCurve.GetTypeId().IntegerValue.Equals(type.Id.IntegerValue)) { return; } TransactionManager.Instance.EnsureInTransaction(DocumentManager.Instance.CurrentDBDocument); InternalMEPCurve.get_Parameter(BuiltInParameter.ELEM_TYPE_PARAM).Set(type.Id); TransactionManager.Instance.TransactionTaskDone(); }