🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.cad.autocad
Article #369

Re: multiple line select for trimming

#369
From: Christopher T. Raffaelli
Date: Sat, 24 Jan 1998 00:00
86 lines
2848 bytes
or you can use fence.

after you have selected the cutting adge and are about to select the objects
that are to be trimmed, type f and return.  you will enter the fence
command.  then select two points that will have a line through all of the
parts of the vectors to be trimmed.

have fun
chris




David R wrote in message ...
>Try this:
>
>(DEFUN C:TRC (/ BE SS LS NO P1 P1)
> (setvar "CMDECHO" 0)
> (prompt "Select boundary edge(s)...")
> (terpri)
> (setq BE (ssget))
> (terpri)
> (prompt "Select objects to trim via crossing window...")
> (terpri)
> (setq P1 (getpoint "1st Point:"))
> (terpri)
> (setq P2 (getcorner P1 "2nd Point:"))
> (terpri)
> (setq SS (ssget "C" P1 P2)
>       LS (sslength SS)
>       NO -1
> )
> (COMMAND "TRIM" BE "")
> (repeat LS
>  (setq NO (1+ NO))
>  (COMMAND (list (ssname SS NO) P2))
> )
> (COMMAND "")
> (setvar "CMDECHO" 1)
> (PRINC)
>)
>
>To extend the same way, try this:
>
>(DEFUN C:EXC (/ BE SS LS NO P1 P1)
> (setvar "CMDECHO" 0)
> (prompt "Select boundary edge(s)...")
> (terpri)
> (setq BE (ssget))
> (terpri)
> (prompt "Select objects to extend via crossing window...")
> (terpri)
> (setq P1 (getpoint "1st Point:"))
> (terpri)
> (setq P2 (getcorner P1 "2nd Point:"))
> (terpri)
> (setq SS (ssget "C" P1 P2)
>       LS (sslength SS)
>       NO -1
> )
> (COMMAND "EXTEND" BE "")
> (repeat LS
>  (setq NO (1+ NO))
>  (COMMAND (list (ssname SS NO) P2))
> )
> (COMMAND "")
> (setvar "CMDECHO" 1)
> (PRINC)
>)
>
>On Sat, 24 Jan 1998 00:45:37, Sanju Abraham <sanju@myself.com> wrote:
>
>> Does anyone know of anyway that I can select multiple lines to be
>> trimmed against one cutting edge. For example if there were 50 lines
>> running horizontally  and one line bisecting them vertically and I
>> wanted to trim the 50 lines using the vertical line as a cutting edge,
>> is there any way to select all 50 lines at once. I am using AutoCAD v14
>> VBA version.
>>
>> Thanks for your help.
>> Sanju Abraham
>> sanju@myself.com
>>
>
>To E-Mail me, Ix-nay on the o-nay am-spay
Technical Details
Message-ID: <6abts1$du8@bolivia.earthlink.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34C939B1.24965A59@myself.com> <j1rdTUJFx8Zy-pn2-YXf5yfWsb0Ii@x2-03-53.phl.FAST.NET>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d3b,648e6438893ee754
X-Google-Attributes: gid113d3b,public
X-Google-Thread: 100c0f,648e6438893ee754
X-Google-Attributes: gid100c0f,public
X-Google-Thread: 10e889,648e6438893ee754
X-Google-Attributes: gid10e889,public
From: "Christopher T. Raffaelli" <raffaelli@earthlink.net>
Subject: Re: multiple line select for trimming
Date: 1998/01/24
Message-ID: <6abts1$du8@bolivia.earthlink.net>
X-Deja-AN: 318786539
References: <34C939B1.24965A59@myself.com> <j1rdTUJFx8Zy-pn2-YXf5yfWsb0Ii@x2-03-53.phl.FAST.NET>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: EarthLink Network, Inc.
Newsgroups: comp.cad.autocad,alt.cad.autocad,autodesk.autocad.r14general