macro

macro

bedyr
Advocate Advocate
1,657 Views
10 Replies
Message 1 of 11

macro

bedyr
Advocate
Advocate

Hİ, Anybody can help to write this macro command

 

^C^CP;*FROM;\5;FROM;\5;5;

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

Alfred.NESWADBA
Consultant
Consultant

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 -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 11

bedyr
Advocate
Advocate

P= POLYLINE

FROM = SNAP FROM

 

I want to draw a line from along the wall and curve  by auto offset. 

0 Likes
Message 4 of 11

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

can you copy the content of the textwindow (<F2>) after you started that macro and show this here?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 5 of 11

bedyr
Advocate
Advocate

^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.

0 Likes
Message 6 of 11

Alfred.NESWADBA
Consultant
Consultant

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 -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 7 of 11

bedyr
Advocate
Advocate
Can we that with a lisp ?

I want to use that for electrical lighting and power plan. This is help me so much.
0 Likes
Message 8 of 11

Alfred.NESWADBA
Consultant
Consultant

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 -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 9 of 11

bedyr
Advocate
Advocate

I want to do this;

 

[video]

 

 

I want to do on Autocad ;

 

0 Likes
Message 10 of 11

Alfred.NESWADBA
Consultant
Consultant

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 -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 11 of 11

bedyr
Advocate
Advocate

it is working until appears <offset>. After that our value (5) is not working.

0 Likes