Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Possible to convert lines to polylines ?

0 views
Skip to first unread message

Mathias Stabel Tvedt

unread,
Jul 4, 1996, 3:00:00 AM7/4/96
to

I wonder if I can convert lines into polylines in r13win...
Please help me !!

Thanks in advance

Mathias


Brad Greer

unread,
Jul 5, 1996, 3:00:00 AM7/5/96
to

>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

Darren J. Young

unread,
Jul 9, 1996, 3:00:00 AM7/9/96
to

In article <4rh1fj$i...@nic.global-one.no>,

mathias-st...@ha-nett.no (Mathias Stabel Tvedt) wrote:
-> I wonder if I can convert lines into polylines in r13win...
-> Please help me !!

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


Chris Haynes

unread,
Jul 10, 1996, 3:00:00 AM7/10/96
to

mathias-st...@ha-nett.no (Mathias Stabel Tvedt) wrote:

>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)
)


Niels

unread,
Jul 11, 1996, 3:00:00 AM7/11/96
to

for making i pline out of several line pieces in acad r13 i use the
pline edeting command, select the first piece autocad comes with a
prompt "this is not a pline, make one of it" reply with yes after that
selct the join command and select the other pieces of line from you
want to make a pline of..


grtn Niels


0 new messages