API BreakCurve method creates a new Duct/Pipe without MEPSystem

API BreakCurve method creates a new Duct/Pipe without MEPSystem

jlpgy
Advocate Advocate
615 Views
0 Replies
Message 1 of 1

API BreakCurve method creates a new Duct/Pipe without MEPSystem

jlpgy
Advocate
Advocate

Hi developers:

 

There is a method named as BreakCurve in both

MechanicalUtils

 and

PlumbingUtils

 

It'a an easy approach of breaking a Duct or Pipe.

But, when I was debugging the following simple codes:

 

                    newElemId = MechanicalUtils.BreakCurve(
                           elem.Document, elem.Id, point);
                    var newDuct = elem.Document.GetElement(newElemId) as Duct;

I found out that the newDuct . MEPSystem property is "null".

 

 

This is little bit annoying.

Why does it happen?

 

In my opinion,if we break an exsiting duct, we break a big connection network into two smaller connection network, which means: at least the new duct after breaking should still share the same SYSTEM TYPE.

 

Is there any work around? For example, manually set a system type to the new duct or pipe?

 

And if you have read here, you can also refer to my former post in this forum:

trouble-of-my-own-implementation-of-breakcurve-on-conduit

 

单身狗;代码狗;健身狗;jolinpiggy@hotmail.com
0 Likes
616 Views
0 Replies
Replies (0)