I find that the ExporterIFCUtils.GetInstanceCutoutFromWall is a fine way to get the outer CurveLoop of a window or a door, but sometimes it does for some strange reason not work, and no helpful error message is supplied.
I have attached
Now my hope is, that someone is able to explain why the GetInstanceCutoutFromWall works on one window but not on the other?
Regards
Jan Grenov
Solved! Go to Solution.
Solved by jan. Go to Solution.
Now I have determined when the error occurs!
It happens whenever an opening family (door or window ) is defined without and openingcut.
Openings must have an OpeningCut object. If not the GetInstanceCutoutFromWall will fail!
Regards
Jan Grenov
Dear Jan,
Thank you for very much raising, solving and sharing the solution for this issue.
This sounds like a nice, clear, succinct snippet of information that I will be glad to summarise and publish on The Building Coder as well for future reference.
Cheers,
Jeremy
Hi Jeremy,
would be useful to add this to the RevitAPI.chm, as well.
Rudi
Dear Rudi,
Thank you for the suggestion.
I'll see what i can do...
Cheers,
Jeremy
Thank you again, Jan, for pointing this out!
Saved here for posterity and future reference:
Cheers,
Jeremy