Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NewCrossFitting nondescriptive exception thrown

1 REPLY 1
Reply
Message 1 of 2
davex__
523 Views, 1 Reply

NewCrossFitting nondescriptive exception thrown

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?

1 REPLY 1
Message 2 of 2
jeremytammik
in reply to: davex__

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community