Thanks in advance
Mathias
>Thanks in advance
>Mathias
Yes. Type PEDIT and click on the line you want to convert.
It will ask you if you want to make the line a polyline. Answer yes.
Brad
Mathias,
Look in the Command Reference Manual for the PEDIT command. This will
do what you need. Upon picking a non-polyline entity, the command
will prompt you if you want to convert it.
Sincerely,
Y-------------------------------------------------------------------+
| Darren J. Young | Minnesota CADWorks, Inc |
| dyo...@cloudnet.com | P.O. Box 7293 |
| 76341...@compuserve.com | St. Cloud, Minnesota 56302-7293 |
| http://www.cloudnet.com/~dyoung | Phone/Fax 1-320-654-9053 |
| CAD/CAM/CNC - Drafting Design Customization Training Programming |
0,0-----------------------------------------------------------------X
>I wonder if I can convert lines into polylines in r13win...
>Please help me !!
>
>Thanks in advance
>
>Mathias
>
Mathias,
Here it is. The LISP program is called LIN2POLY.LSP and the command is
also called LIN2POLY. It allows the user to use any selection set to
select entities and it filters out everything but LINE entities. It
then uses the PEDIT command to convert the LINEs to POLYLINEs. I hope
this does what you needed it to do.
Chris Haynes
cha...@ns.gemlink.com
;****************************************************************************
; lin2poly.lsp : Converts all selected LINE entities to polylines.
; written by Chris Haynes 6/09/96
; (cha...@ns.gemlink.com)
;****************************************************************************
(defun c:lin2poly(/ old_cmdecho ss_line count sslen name)
(setq old_cmdecho (getvar "CMDECHO"))
(setvar "CMDECHO" 0)
(setq ss_line (ssget '((0 . "LINE"))))
(if ss_line
(progn
(setq count 0
sslen (sslength ss_line)
)
(repeat sslen
(setq name (ssname ss_line count)
count (1+ count)
)
(command "pedit" name "Y" "X")
)
)
)
(prompt"\nConverted ")
(princ sslen)
(princ " LINES to POLYLINES.")
(setvar "CMDECHO" old_cmdecho)
(princ)
)
grtn Niels