Repeat bounding box command on list of objects and use UCS

Repeat bounding box command on list of objects and use UCS

squowse
Community Visitor Community Visitor
258 Views
2 Replies
Message 1 of 3

Repeat bounding box command on list of objects and use UCS

squowse
Community Visitor
Community Visitor

I am successfully using the LeeMac function to draw a rectangular bounding box around polyline objects.

https://www.lee-mac.com/boundingbox.html

I would like it to use the UCS though.

Also I want it to create an individual bounding box for all the entities in the list. Most functions are setup to give a bounding box around all the entities in the list.

Sorry my AutoLISP is very rusty, so even basics like this evade me.

 

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

dbroad
Mentor
Mentor

If you need the routine modified, contact Lee-Mac. For us to do so without his permission would be a copyright problem. 

 

If you just need the coordinates adjusted to the current ucs, then look into the trans function. If you fail, post your attempt and we will assist you to learn.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 3 of 3

Kent1Cooper
Consultant
Consultant

@squowse wrote:

.... I would like it to use the UCS though.

Also I want it to create an individual bounding box for all the entities in the list. Most functions are setup to give a bounding box around all the entities in the list. ....


For the individual-boxes request, you can use the DBB command defined in DrawBoundingBox.lsp, >here<.  [It works in the WCS or in a UCS that is aligned with the WCS but can have a different origin.]

 

For the UCS part, do you mean you want the bounding boxes drawn in the current UCS, regardless of that of the objects?  And would you always use it in Plan view in the current UCS?  If not, should boxes be drawn to enclose things as seen from the current view direction, or as they would be seen if in Plan view?  Or should a UCS be set suited to each object to draw its box?  Or something else?

Kent Cooper, AIA
0 Likes