Hi,
>> Anybody can help to write this macro command
What should the macro do and what fails on your system?
For example what is command P on your system? ... on my English setup it starts the PAN command (real time pan) and sending then *FROM to the command line does not make sense for me.
In most cases it's a big help if you let your macro work, then press <F2> and see what the command line shows you (like missing objects or wrong options, ...)
- alfred -
P= POLYLINE
FROM = SNAP FROM
I want to draw a line from along the wall and curve by auto offset.
Hi,
can you copy the content of the textwindow (<F2>) after you started that macro and show this here?
- alfred -
^C^Cpline;\from;\5;
Command: pline
Specify start point:
Current line-width is 0.0000
Specify next point or [Arc/Halfwidth/Length/Undo/Width]: from
Base point: 5
2D point or option keyword required.
Base point: <Offset>: 5
if I input 5 mechanicaly, it is working. But it is not work on macro command.
Hi,
There you can see the error position:
Specify start point: Current line-width is 0.0000 Specify next point or [Arc/Halfwidth/Length/Undo/Width]: from Base point: 5 2D point or option keyword required. Base point: <Offset>: 5
OK, now I see what you are trying to do ... that is a bit difficult to solve with a macro as it needs to wait for a cursor movement/new cursor position (to show the direction of 5) ... but there is no click and so the macro sends the "5" while your cursor stays at the "FROM" point.
Is there any chance to give relative coordinates for the distance between "FROM" and the new point? What is your workflow/where do you need that macro?
Good luck, - alfred -
Hi,
>> I want to use that for electrical lighting and power plan
For schematics? If so then you might create 4 macros, (5 units right/up/left/down)
>> Can we that with a lisp ?
You can do a lot with any API available in AutoCAD, but let's start with a drawing that shows some situations where you need that.
- alfred -
Hi,
thx for the videos.
First video can only be done with an application, not just with menu macros.
The second video can be done (using _FROM;\@5,5) if you create an icon for each direction.
HTH, - alfred -