Article View: comp.cad.autocad
Article #368Re: multiple line select for trimming
From: David R
Date: Sat, 24 Jan 1998 00:00
Date: Sat, 24 Jan 1998 00:00
72 lines
2451 bytes
2451 bytes
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:
<j1rdTUJFx8Zy-pn2-YXf5yfWsb0Ii@x2-03-53.phl.FAST.NET>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34C939B1.24965A59@myself.com>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: davidr@fast.net (David R) Subject: Re: multiple line select for trimming Date: 1998/01/24 Message-ID: <j1rdTUJFx8Zy-pn2-YXf5yfWsb0Ii@x2-03-53.phl.FAST.NET> X-Deja-AN: 318771339 Content-Transfer-Encoding: 8bit References: <34C939B1.24965A59@myself.com> Mime-Version: 1.0 Reply-To: davidr@fast.net Content-Type: text/plain; charset="us-ascii" Organization: FASTNET(tm) PA/NJ/DE Internet Newsgroups: comp.cad.autocad,alt.cad.autocad,autodesk.autocad.r14general