Resizing piping system elements

Resizing piping system elements

rustamMMMR2
Participant Participant
454 Views
0 Replies
Message 1 of 1

Resizing piping system elements

rustamMMMR2
Participant
Participant

Hi everyone.

The problem

I'm currently developing piping system sizing tool using Revit API (C#) but have problems with sizing of fittings. My current approach to piping system sizing is:

Transaction start:
    Resize all pipes
    Recreate tees: delete old tees and insert new ones using RevitDocument.Create.NewTeeFitting(Connector_1, Connector_2, Connector_T);
    Recreate elbows: delete old elbows and insert new ones using RevitDocument.Create.NewElbowFitting(Connector_1, Connector_2);
Transaction commit.

As you can see I'm trying to delete old fitting and everything in between with pipe and create a new one. All parameters used in New<Fitting type>Fitting methods are correct (of that I'm sure, I've checked everything many times). The problem is that Revit throws exception Autodesk.Revit.Exceptions InvalidOperationException without any additional explanation. But when I try to connect pipes manually using Revit UI, everything works fine.

Questions

  1. Is there reliable way of piping system sizing than does not break (disconnect) system and changes fittings sizes regardless of user's routing preferences?
  2. Is there any other approach to reliably system sizing if system meets some requirements (for example with using of specified fittings families)?

What i've allready tried

I've allready tried to change fitting's connector size regarding to sizes of connected element's connectors sizes but I had problem that I wrote about in my previous post https://forums.autodesk.com/t5/revit-api-forum/duct-fittings-connectors-width-and-height-depending-o... .

 

Thank you.

0 Likes
455 Views
0 Replies
Replies (0)