GetBoundingBox

GetBoundingBox

Anonymous
Not applicable
1,433 Views
7 Replies
Message 1 of 8

GetBoundingBox

Anonymous
Not applicable

Hello!

 

Is there function to get bounding box for all

entities on active document (not particular entity)?

 

 

Thank in advance for help

 

Best regards,

Danijel

 

0 Likes
1,434 Views
7 Replies
Replies (7)
Message 2 of 8

kerry_w_brown
Mentor
Mentor

Perhaps consider Zoom Extents and get view size.

 


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 3 of 8

Anonymous
Not applicable

 

Unfortunately I can't use that function :-(!

 

Thank you

 

Danijel

0 Likes
Message 4 of 8

kerry_w_brown
Mentor
Mentor

2 more options

 

1) build a list of bounding box values for each entity.

determine the LL min and UR max value from the list.

 

 2) build a block (temporary) of all entities. get the bounding box of the block

 


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 5 of 8

Anonymous
Not applicable

 

hm...it maybe can help... 😉

 

I will think about it...

 

Thank you

 

Danijel

0 Likes
Message 6 of 8

Anonymous
Not applicable

1. Get objectiD's in selection by using select all

2.Get geometrick extents of selection.

3.  Then you can acces "max" & "min" points.

 

Cheers,

 

Martin.

0 Likes
Message 7 of 8

Anonymous
Not applicable
0 Likes
Message 8 of 8

Anonymous
Not applicable

 

THANK YOU!

 

Best regards,

Danijel

0 Likes