How to split a cable tray with Revit api?

How to split a cable tray with Revit api?

Sino.Pacific
Contributor Contributor
1,918 Views
5 Replies
Message 1 of 6

How to split a cable tray with Revit api?

Sino.Pacific
Contributor
Contributor

Hello everyone,

 

I am trying to split the Cable trays using Revit API but did not find any API for the Cable trays. 

Ducts and Pipes have the PlumbingUtils.BreakCurve and MechanicalUtils.BreakCurve class, but I don't know if there is any class for the Cable Trays. 

If anyone have experience with this issue, please help me.

Thank you so much 🙂

 

Best Regards,

 

Sino

0 Likes
1,919 Views
5 Replies
Replies (5)
Message 2 of 6

ryansC5XHQ
Contributor
Contributor

I've had to get creative and create a family using a Generic Model-Line Based family. Then I would split the family using the FamilyInstance.Split(Double param).

0 Likes
Message 3 of 6

Sino.Pacific
Contributor
Contributor

@ryansC5XHQ ,

 

Thank you for your comments but unfortunately, this is not I intend to do. Cause I need to use the system cable tray family.

0 Likes
Message 4 of 6

mikukzaz55
Contributor
Contributor

hi..

I am also interested in this problem.. Is there a solution yet?

Thanks!

0 Likes
Message 5 of 6

sahin.ikbal
Advocate
Advocate

Unfortunately BreakCurve method is not available for CableTray.

To achieve similar result:-

Break the LocationCurve line from the initial CableTray programmatically according to your requirement then you can first copy the CableTray and then change their Locationcurve accordingly from those new lines.

0 Likes
Message 6 of 6

adam.krug
Advocate
Advocate

see https://forums.autodesk.com/t5/revit-api-forum/trouble-of-my-own-implementation-of-breakcurve-on-con... - it's exactly such method but for conduits, should also work for cable trays.

0 Likes