view layout

view layout

Anonymous
Not applicable
330 Views
1 Reply
Message 1 of 2

view layout

Anonymous
Not applicable

Hi everybody,

 

I am trying to get the BoundaryBox of an element:

 

            var view = element.Document.ActiveView;
            var boundary = element.get_BoundingBox(view);

 

The problem that I have it is depending of the view, the BoundaryBox can be null. 

 

My question is if there would be any way to get it always, independent of the view.

 

Javi

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

jeremytammik
Autodesk
Autodesk

Pass in `null` for the view, or `Nothing` in VB.NET.

 

Cheers,

 

Jeremy

 



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

0 Likes