move, rotate and sort automatically selected blocks

move, rotate and sort automatically selected blocks

jtm2020hyo
Collaborator Collaborator
1,404 Views
10 Replies
Message 1 of 11

move, rotate and sort automatically selected blocks

jtm2020hyo
Collaborator
Collaborator

I need to move, rotate and sort constantly a lot of blocks in an area (circle or polygons) selecting it like a *line or choose points with the mouse. 



so I need a Lisp for doing this automatically.

image.pngimage.png

 

 

 

0 Likes
1,405 Views
10 Replies
Replies (10)
Message 2 of 11

jtm2020hyo
Collaborator
Collaborator

PD: I need to use this lisp for regular block, dynamic blocks and xref.

0 Likes
Message 3 of 11

ВeekeeCZ
Consultant
Consultant

Sorry, not understood. Do you want to select all blocks inside the polyline by picking on the polyline?

Message 4 of 11

jtm2020hyo
Collaborator
Collaborator

1) I need to selected objects like regular block, dynamic blocks, xref, devices (in AutoCAD MEP)

 

image.png

 

2) select an area picking out 3 points with my mouse or picking a closed polyline

 

image.pngimage.png

 

 

3) then lisp should move all block inside the area or closed polyline (or another object closed). sort aleatory or whatever. 

 

image.png

 

4) then if I cancel the lisp, the result should end like the pic above, if not, then lisp should show a prompt requesting the rotation direction with 2 options: use 2 straight *lines (polyline, line) picking out 2 points each *lines or 2 curved *lines picking out 3 points each *line.

 

image.png

 

 

 

 

 

 

 

 

 

0 Likes
Message 5 of 11

Kent1Cooper
Consultant
Consultant

This seems enormously indeterminate to me.  The phrase "sort aleatory or whatever" [aleatory essentially means "random"] is especially problematic.  Assuming the insertion points would be the basis of positioning inside the shape, a really random distribution could give you a result like this:
Random.PNG

I assume that would not be an acceptable outcome.

 

I think you would need to consider carefully what is needed, what the likely conditions would be, and spell out some definite criteria that would limit the possibilities.  Should they be placed no less than a certain distance from the perimeter?  No less than a certain distance from each other?  Do those certain distances depend on the size  of the Blocks?  Do they depend on the size of the perimeter?  For example, with distance-from-perimeter and distance-from-each-other limits, without  consideration of the size of the perimeter, you could get a result like this:

Random2.PNG

which I assume would also be undesirable.

 

If the Blocks are not "compact" shapes and their insertion points are not at least close to the middle, would the distances need to be affected by each Block's rotation angle?  Would the selection always be multiple copies of the same  Block, or could they be different ones?  If different, would they at least be of approximately the same size?  Etc., etc.

 

I don't think it is a simple task -- it might be fairly easy if the shapes are always Circles or Ellipses or Rectangles [or at least fully convex closed Polylines with relatively low numbers of vertices], but for a shape similar to the later ones in your images [yellow above], calculating the appropriate locations inside it could be very difficult.

Kent Cooper, AIA
Message 6 of 11

jtm2020hyo
Collaborator
Collaborator
0 Likes
Message 7 of 11

jtm2020hyo
Collaborator
Collaborator

tl;dr:


what I need do is a "Lighting Blocks Distribution"

 

I just have some blocks that represent some lighting and I need to sort uniformly around a room.

I was just generalizing.

 

I think what I was describing above is a way generalized that the LISP LXX of PAYAZED that should match with any problem in any situation.

 

https://payazed.wordpress.com/2016/04/24/lxx/

 

 

 

0 Likes
Message 8 of 11

Moshe-A
Mentor
Mentor

@jtm2020hyo hi,

 

hatch is more appropriate here, of course if the light fixtures graphics is simple. 

 

moshe

 

0 Likes
Message 9 of 11

Sea-Haven
Mentor
Mentor

This to me is I do not want to pay for a solution that will do what I want, clicked on link rather get some one out there to do it for nothing a common problem these days with forums, the output is a financial saver so sometimes you have to pay.

 

 

Message 10 of 11

jtm2020hyo
Collaborator
Collaborator

I think that tool is free. But concepts are similar not equals.

 

My concept can be used in multiple situations , not just lighting analysts

0 Likes
Message 11 of 11

jtm2020hyo
Collaborator
Collaborator

about the rotation option. its already not need more. because I already found another lisp to do this.
attached below.

 

please help me to move and sort all selected block in an area

0 Likes