Wall Opening

Wall Opening

Anonymous
Not applicable
2,669 Views
3 Replies
Message 1 of 4

Wall Opening

Anonymous
Not applicable

Hi,

 

I'm using the Revit 2014 API ad I'm trying to create a non-rectangular wall opening.  

 

The documentation for Create.NewOpening suggests that making the opening with an iList<Curve> is only applicable to roofs, floors and ceilings. When I try to use one NewOpening(element wall, Ilist,Curve> profile, bool perpendicularFace)  method I get the InvalidOperation crash.

 

The only mention of wall openings is in the NewOpening(Wall, XYZ,XYZ) overload which is for rectangular openings. I have been able to use this successfully.

 

Any help would be most appreciated.

0 Likes
2,670 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Dear Martyo,

 

Here are rather old posts which may contains ome hints:

 

http://thebuildingcoder.typepad.com/blog/2010/03/newwall-with-opening.html

 

http://thebuildingcoder.typepad.com/blog/2011/07/create-gable-wall.html

 

The command CmdCreateGableWall defined by the latter is available for Revit 2014 too, in The Building Coder samples:

 

https://github.com/jeremytammik/the_building_coder_samples

 

Cheers,

 

Jeremy



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

0 Likes
Message 3 of 4

Joe.Ye
Alumni
Alumni

Dear Martyo,

To create a non-rectangle on wall, you have to create a window family instance, which doesn't have the window frame. It can cut a hole in the wall. You can define the shape of the window to any shape. So in this way you can create any shape of opening on the wall. Windows can be created by calling NewFamilyInstance() method.

On how to create such a window family, you can refer to an family called *Window-Round Opening.rfa in revit's default family library.


Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
0 Likes
Message 4 of 4

Anonymous
Not applicable

Hi Joe

 

Thanks for the suggestion. I will give this a go.

0 Likes