Add Panels in CurtainWall

Add Panels in CurtainWall

Anonymous
Not applicable
511 Views
2 Replies
Message 1 of 3

Add Panels in CurtainWall

Anonymous
Not applicable

Hi Revit,

 

I create a curtainWall (defined in Revit family) via API in this way:

 

Wall wall= Wall.Create(doc, line, levelBottomId, false);
wall.WallType = newWallType;


 if (wall.WallType.Kind == WallKind.Curtain)
  {
       //how to split it in panels?                      
       CurtainGrid grid= wall.CurtainGrid;
        grid.AddGridLine(false, point, false);

}

 

I want to split the wall in some panels. is it right? how to complete the command?

 

Regards,

 

Bruno

0 Likes
512 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
What 'point' are you setting? I would imagine you want the XYZ to be somewhere along the length of the wall. Try getting the midpoint of the wall and using that point.
0 Likes
Message 3 of 3

Anonymous
Not applicable

I have followed your suggestion and it didn't work.

I understood why (my fault):

you must create the wall in transaction ONE, commit, and in transaction TWO add the grid line. Now it works.

 

Thank you,

 

Regards,

 

Bruno

 

 

0 Likes