Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

GetInstanceCutoutFromWall Problem

Anonymous

GetInstanceCutoutFromWall Problem

Anonymous
Not applicable

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

0 Likes
Reply
Accepted solutions (1)
1,013 Views
6 Replies
Replies (6)

Anonymous
Not applicable
Accepted 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

jeremytammik
Autodesk
Autodesk

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

0 Likes

Revitalizer
Advisor
Advisor

Hi Jeremy,

 

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

 

 

Rudi




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes

jeremytammik
Autodesk
Autodesk

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

0 Likes

jeremytammik
Autodesk
Autodesk

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

0 Likes

Anonymous
Not applicable

Glad to be of assistance. Smiley Happy

0 Likes