Revit 2016 - Programatically creating door

Revit 2016 - Programatically creating door

Anonymous
Not applicable
432 Views
1 Reply
Message 1 of 2

Revit 2016 - Programatically creating door

Anonymous
Not applicable

Hello all,

 

I have run into a revit issue when i create a door through code.

 

I have written an addon that essentially imports simple architectural data from an XML file and creates a bunch of elements (walls, windows, doors, roof, etc).

 

In many cases, the building information contains 2 sets of walls - stem walls (ie. concrete) and the walls that rest on top of the stem walls. If stem walls exist then any doors placed on a wall need to be placed using the stem wall as their host wall.

 

The problem here is that doors placed through the revit API fail to cut inserts properly on walls that are not their host. Screenshot below:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The door is hosted on the concrete wall on the bottom. As you can see, it is not cutting the upper wall correctly. 

Is there any way around this problem that isn't hacky, such as cutting manual inserts etc?

If not, then i hope autodesk can use this as a basis for a bugfix. I think i have provided all the needed info. Cheers.

 

 

0 Likes
433 Views
1 Reply
Reply (1)
Message 2 of 2

Revitalizer
Advisor
Advisor

Hi,

 

just a guess:

 

if (!InstanceVoidCutUtils.InstanceVoidCutExists(wall, opening))
{

    if (InstanceVoidCutUtils.CanBeCutWithVoid(wall))
    {
        InstanceVoidCutUtils.AddInstanceVoidCut(doc, wall, opening);
    }
}

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes