Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom command

11 REPLIES 11
SOLVED
Reply
Message 1 of 12
tmccar
457 Views, 11 Replies

Custom command

A command that I am using frequently is "Pedit", to convert a line to a polyline. I have added it to a custom toolbar but it is just not completing the command. Here is the command macro I'm using:

^C^Cpedit \ j;

11 REPLIES 11
Message 2 of 12
rkmcswain
in reply to: tmccar

Are you just trying to convert a single line to a polyline? You have a "J" at the end which starts the Join part of Pedit.

Also, you need to be mindful of the PEDITACCEPT sysvar, because it changes the prompts for PEDIT.

Please clarify exactly what you want this macro to do.
R.K. McSwain     | CADpanacea | on twitter
Message 3 of 12
steve216586
in reply to: tmccar

Try this to join multiple lines and arc into a Pline in one selection operation:

 

^C^C-PEDIT;M;;Y;J;;;

"No one can make you feel inferior without your consent. "-Eleanor Roosevelt
Message 4 of 12
tmccar
in reply to: rkmcswain

I want to be able to select a line and have it change into a polyline (with one click).
Message 5 of 12
steve216586
in reply to: tmccar

Try this:

 

^C^C_PEDIT;\Y;;^P

"No one can make you feel inferior without your consent. "-Eleanor Roosevelt
Message 6 of 12
tmccar
in reply to: steve216586

Thanks Steve, that works if I set PEDITACCEPT to 1. What does ^P do?
Message 7 of 12
Bob_Zurunkle
in reply to: tmccar

You could always build PEDITACCEPT=1 into the macro...and you could probably shorten PEDIT to PE

If by some odd chance my nattering was useful -- that's great, glad to help. But if it actually solved your issue, then please mark my solution as accepted 🙂
Message 8 of 12
steve216586
in reply to: tmccar

If echoes and prompts from item input are turned off, a ^P in the item turns them off.

"No one can make you feel inferior without your consent. "-Eleanor Roosevelt
Message 9 of 12
nestly2
in reply to: tmccar

LeeMac's Polyline Join lisp is all I ever use.  With one click, it automatically converts anything in the selection that can be converted into a polyine into a polyline, an then joins together all segments that can be joined.  Works regardless of whether the selection is create first, or after starting the lisp.

Message 10 of 12
steve216586
in reply to: nestly2

I used to use that same lisp but not by that guy. Then I stripped it down to this:

 

"_.pedit" "_M" ss "" "_J" "" ""

 

Then again to what I posted ealier as a macro.  Smiley Happy

 

 

"No one can make you feel inferior without your consent. "-Eleanor Roosevelt
Message 11 of 12
tmccar
in reply to: steve216586

I'm curious as to what the underscore and dot before the "pedit" command does - also the _M and _J. These are not recognised on my Autocad 2011.
Message 12 of 12
rkmcswain
in reply to: tmccar

tmccar wrote:
I'm curious as to what the underscore and dot before the "pedit" command does - also the _M and _J. These are not recognised on my Autocad 2011.

See this post for an explanation.

R.K. McSwain     | CADpanacea | on twitter

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost