How to Resolve Autolisp AutoMacro AutoCAD 2016?

Hello.

I ask how to group the following sequence in an AutoCAD macro:

_qselect (to select a known layer)

Move the selected layer from coordinates (x,y,z) to (x1,y1,z1)

This action is done 3 times in the same macro.

Thank you.

Hello

What is the name of the layer?

Hello

no worries to help you on the other hand I don't really understand the "Move the layer"
I think you're talking about the content of the layer
Could you confirm it to me please

Well so I did this to you the way I understood it
I don't know if that's what you're waiting for
The LISP file is attached (right click Save As / Save Link As)

To make it work:
In the AutoCAD command line, type "AppLoad"
Go get the file you just downloaded "dep_calque.lsp"
type "dep_calque" in the command line to launch the program

it should work

The procedure:
you select an object from a layer to identify the layer
You enter the starting point of the move, the end point and it should move it
I put a loop to do this action three times in a row

 


dep_calque.lsp
3 Likes

Slt

Is the question resolved?

1 Like

I also wonder if the question is resolved, no news, good news!

1 Like

I mean selected entity instead of selected layer

Thank you

Slt

Ok for entity selection
Have you tried the code I put just above ?
Is that okay with you?