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: 

GetInstanceCutoutFromWall Problem

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
jan
Advocate
695 Views, 6 Replies

GetInstanceCutoutFromWall Problem

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

  • a simple test project including only one wall containing two windows
  • a sample code that demonstrates the problem.

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

6 REPLIES 6
Message 2 of 7
jan
Advocate
in reply to: jan

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

Message 3 of 7
jeremytammik
in reply to: jan

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



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

Message 4 of 7
Revitalizer
in reply to: jeremytammik

Hi Jeremy,

 

would be useful to add this to the RevitAPI.chm, as well.

 

 

Rudi




Rudolf Honke
Software Developer
Mensch und Maschine





Message 5 of 7
jeremytammik
in reply to: Revitalizer

Dear Rudi,

 

Thank you for the suggestion. 

 

I'll see what i can do...

 

Cheers,

 

Jeremy



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

Message 6 of 7
jeremytammik
in reply to: jan

Thank you again, Jan, for pointing this out!

 

Saved here for posterity and future reference:

 

http://thebuildingcoder.typepad.com/blog/2017/06/copy-local-false-and-ifc-utils-for-wall-openings.ht...

 

Cheers,

 

Jeremy



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

Message 7 of 7
jan
Advocate
in reply to: jeremytammik

Glad to be of assistance. Smiley Happy

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