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: 

NewElbowFitting returning null

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
GeomGym
527 Views, 3 Replies

NewElbowFitting returning null

Jeremy's recent posts about rolling offsets of pipes has been pretty helpful for me to advance MEP importing.

http://thebuildingcoder.typepad.com/blog/2014/01/connecting-the-rolling-offset-pipe-to-its-neighbour...

 

But I get a null value returned from NewElbowFitting without an exception.  Can someone please help?

 

It's possible I need to set something up in the project, I'm not an expert with services by any means.

 

I've attached sample code and you can download revit project here:

http://geometrygym.wikidot.com/local--files/cloudfiles/140502%20two%20pipes.rvt

 

Thanks,

 

Jon

Tags (1)
3 REPLIES 3
Message 2 of 4
js1900
in reply to: GeomGym

Hi Jon,

Your code is correct, only the example model you attached contains pipe place holders, which do not have fittings, as such it's not supported to place an elbow fitting. I have tested with them as pipes and it does place the elbow as expected.

Will
Message 3 of 4
GeomGym
in reply to: js1900

Hi Will,

 

Thanks for looking (and the answer is embarrasing).  I hadn't detected the place holders, I checked my original code and found the cause and it's now fixed.  Appreciate your response.

 

Cheers,

 

Jon

Message 4 of 4
js1900
in reply to: GeomGym

No worries, I put it down the API swallowing the error, would've been really helpful if it raised an exception instead.

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