Change routing programmatically

Change routing programmatically

Josh.Thomason
Enthusiast Enthusiast
234 Views
2 Replies
Message 1 of 3

Change routing programmatically

Josh.Thomason
Enthusiast
Enthusiast

I have managed to make an app that rotates stuff and moves stuff thanks to the help on this forum and I really appreciate that. I was trying to make the same code execute on a dockable dialog instead but after weeks of study and research I am giving up on that for now and focusing on figuring out what I want all the buttons to do first. Events, modeless forms, and delegates are too much for me right now. lol

 

I was hoping someone could tell me if this is possible programmatically. To change a from a tee coming straight off the pipe at the same elevation to coming up and then over.

 

I know I could make the pipe cute, the tee rotate, and the other pipe raise up. Just not sure if I can make it trim the pipe back together. I appreciate any input. I'm working on an app the ease pipe modeling headaches.

 

From this

JoshThomason_0-1660606453338.png

 

To this

JoshThomason_1-1660606507508.png

 

235 Views
2 Replies
Replies (2)
Message 2 of 3

stewart_skyler
Enthusiast
Enthusiast

You could select the pipe coming out of the tee, and the tee itself, and rotate it about the center of the run using RotateElements, draw in a new pipe for the 90, and then use NewElbowFitting to "trim" the two pipes together. 

 

The Building Coder has an example of the NewElbowFitting method in action here.

0 Likes
Message 3 of 3

Josh.Thomason
Enthusiast
Enthusiast

Thanks! There has to be a way to combine all of those. 

0 Likes