Hi,
I want to connect two pipes similar to trim tool in revit.
How do I programatically call trim command.
Thanks & Regards
Diidn't understand what was googled for me.
A simple question I have two pipes pipe1 and pipe2
Neither of them works successfully to connect two pies:
1. doc.Create.NewElbowFitting(c1end,c2start);
2.c1end.ConnectTo(c2start);
c1end is the connctor of pipe1 and c2start is the connector of pipe2
What happens if you connect them manually in the user interface?
Good. Your solution 2. should produce the same result.
Well, it did for me, in all kinds of different permutations:
Maybe you can spot the difference?
The image below will clarify things:
Tried:
try
{
c1end.ConnectTo(c2start);
Command.doc.Create.NewElbowFitting(c1end, c2start);
}
catch (Exception sdq)
{
MessageBox.Show(sdq.Message.ToString());
}
Tried Thsi:
try
{
Command.doc.Create.NewElbowFitting(c1end, c2start);
}
catch (Exception sdq)
{
MessageBox.Show(sdq.Message.ToString());
}
tried this
try
{
c1end.ConnectTo(c2start);
}
catch (Exception sdq)
{
MessageBox.Show(sdq.Message.ToString());
}
But it creates the fittings between pipes in one place but not at the other.
Where you able to solve this at any point? I'm having the exact same problem and cannot find a solution.
Any updated information on this would be greatly appreciated. I'm going down the same road.