NewCrossFitting nondescriptive exception thrown

NewCrossFitting nondescriptive exception thrown

Anonymous
Not applicable
680 Views
1 Reply
Message 1 of 2

NewCrossFitting nondescriptive exception thrown

Anonymous
Not applicable

I am attempting to create a cross fitting by calling Owner.Document.Create.NewCrossFItting, passing in 4 connectors to pipes that are on the same plane and lie along orthogonal lines.  I've verified that the connectors are all at the same point.

 

When I try to call NewCrossFitting, an InvalidOperationException is thrown, with a message stating the obvious:

 

"failed to insert cross"

 

Are there many scenarios where this exception can be thrown, or does it have one specific meaning?  If the former, is there a way to make a feature request of the revit developers to write exception descriptions that aren't totally useless?

0 Likes
681 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Davex,

 

Please excuse this ultra-late reply.

 

I finally discovered and published the answer on The Building Coder:

 

http://thebuildingcoder.typepad.com/blog/2014/10/newcrossfitting-connection-order.html

 

Better late than never, I hope!

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes