break line

break line

Anonymous
Not applicable
617 Views
10 Replies
Message 1 of 11

break line

Anonymous
Not applicable
Need info how to pass the break command with VBA

thank you

--


---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://www.giantcompany.com




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.530 / Virus Database: 325 - Release Date: 10/23/2003
0 Likes
618 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable
unless you're talking about using sendcommand, you would implement your own
version of break, getting points and responding accordingly with adding new
entities, deleting old, etc...
(i think)
hth
Mark

"Ramon Triana" wrote in message
news:DF273D149852A4DA11DA01D258EED771@in.WebX.maYIadrTaRb...
> Need info how to pass the break command with VBA
0 Likes
Message 3 of 11

Anonymous
Not applicable
No not with sendcommand..i like to place a block with in the line and break
these line
i have these routine done in lisp but i was looking how you do it in VBA.

Thank you

--


---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://www.giantcompany.com


"Mark Propst" wrote in message
news:5651C9AD76ACCD4D53311C241DD0835D@in.WebX.maYIadrTaRb...
> unless you're talking about using sendcommand, you would implement your
own
> version of break, getting points and responding accordingly with adding
new
> entities, deleting old, etc...
> (i think)
> hth
> Mark
>
> "Ramon Triana" wrote in message
> news:DF273D149852A4DA11DA01D258EED771@in.WebX.maYIadrTaRb...
> > Need info how to pass the break command with VBA
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.530 / Virus Database: 325 - Release Date: 10/22/2003
0 Likes
Message 4 of 11

Anonymous
Not applicable
Hi Ramon,

Select the line
Record the end point coordinates
Change the end coordinates to the location where you want a break
Draw a new line from the break point to the previous end point.

--


Laurie Comerford
CADApps
www.cadapps.com.au

"Ramon Triana" wrote in message
news:69B76F6BF530B899531484B172C30D05@in.WebX.maYIadrTaRb...
> No not with sendcommand..i like to place a block with in the line and
break
> these line
> i have these routine done in lisp but i was looking how you do it in VBA.
>
> Thank you
>
> --
>
>
> ---------------------------------------------------------------------
> "Are you still wasting your time with spam?...
> There is a solution!"
>
> Protected by GIANT Company's Spam Inspector
> The most powerful anti-spam software available.
> http://www.giantcompany.com
>
>
> "Mark Propst" wrote in message
> news:5651C9AD76ACCD4D53311C241DD0835D@in.WebX.maYIadrTaRb...
> > unless you're talking about using sendcommand, you would implement your
> own
> > version of break, getting points and responding accordingly with adding
> new
> > entities, deleting old, etc...
> > (i think)
> > hth
> > Mark
> >
> > "Ramon Triana" wrote in message
> > news:DF273D149852A4DA11DA01D258EED771@in.WebX.maYIadrTaRb...
> > > Need info how to pass the break command with VBA
> >
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.530 / Virus Database: 325 - Release Date: 10/22/2003
>
>
0 Likes
Message 5 of 11

Anonymous
Not applicable
Ok maybe i don't understand but this is what i loking to do

-----------BLOCK---------

LINE BLOCKINS LINE


tHANK yOU

Ramon Triana wrote:
> Need info how to pass the break command with VBA
>
> thank you
>
0 Likes
Message 6 of 11

Anonymous
Not applicable
There is no Break method.

Modify the original line to form one of the "new" segments, and draw a new
line to make the other new segment.


--
R. Robert Bell, MCSE
www.AcadX.com


"Ramon Triana" wrote in message
news:57F869DF57139F54C024B535EEC9BB22@in.WebX.maYIadrTaRb...
| Ok maybe i don't understand but this is what i loking to do
|
| -----------BLOCK---------
|
| LINE BLOCKINS LINE
|
|
| tHANK yOU
|
| Ramon Triana wrote:
| > Need info how to pass the break command with VBA
| >
| > thank you
| >
|
0 Likes
Message 7 of 11

Anonymous
Not applicable
I'm not at all trying to sound snide or restate the obvious, but it sounds
to me like the thrust of Ramon's question is *how* to calculate the new
endpoints. There've been a few posts on this, and it doesn't look like
there are any simple solutions...
http://groups.google.com/groups?scoring=d&q=trim+block+group:autodesk.autocad.customization.vba

It looks like Ramon could use GetBoundingBox to find approximate break
points of a block if it's not rotated.

Ramon, if you do find some way to use SendCommand to run BREAK or TRIM or
something similar, you'll probably need to use (handent) to input the block
and line objects to the command line. Similar to...
http://groups.google.com/groups?q=handent+group:autodesk.autocad.customization.vba&scoring=d

Sorry I can't be of more help than this, but this doesn't sound too easy.

James
0 Likes
Message 8 of 11

Anonymous
Not applicable
Hi James,

Turn on nearest snap
Pick the first point and the line
Pick the second point
Record the end coordinates of the line
Modify the line to use the picked point as the new end point
Draw a new line using the recorded end point and the second picked point.

No calculations required, easy to program.


Laurie Comerford
CADApps
www.cadapps.com.au



"James Belshan" wrote in message
news:20C326E026D306496E8280EEC6E20DCB@in.WebX.maYIadrTaRb...
> I'm not at all trying to sound snide or restate the obvious, but it sounds
> to me like the thrust of Ramon's question is *how* to calculate the new
> endpoints. There've been a few posts on this, and it doesn't look like
> there are any simple solutions...
>
http://groups.google.com/groups?scoring=d&q=trim+block+group:autodesk.autocad.customization.vba
>
> It looks like Ramon could use GetBoundingBox to find approximate break
> points of a block if it's not rotated.
>
> Ramon, if you do find some way to use SendCommand to run BREAK or TRIM or
> something similar, you'll probably need to use (handent) to input the
block
> and line objects to the command line. Similar to...
>
http://groups.google.com/groups?q=handent+group:autodesk.autocad.customization.vba&scoring=d
>
> Sorry I can't be of more help than this, but this doesn't sound too easy.
>
> James
>
>
>
0 Likes
Message 9 of 11

Anonymous
Not applicable
If you're using AutoCAD 2002 or earlier, you can use the
Break() method of the AcadX Curve object to break *any*
kind of curve entity (e.g., line, arc, polyline, spline,
ellipse, etc), at one or more given points.

http://www.caddzone.com/acadx

Also, the advice of several others regarding how to go about
doing this manually is a bit wrong.

You should *copy* the original line, in order to replicate
its properties, Xdata and so on, rather than 'draw a new line'
as a means of creating the other segment.

--
AcadXTabs: Document Tabs for AutoCAD
http://www.acadxtabs.com


"Ramon Triana" wrote in message news:57F869DF57139F54C024B535EEC9BB22@in.WebX.maYIadrTaRb...
> Ok maybe i don't understand but this is what i loking to do
>
> -----------BLOCK---------
>
> LINE BLOCKINS LINE
>
>
> tHANK yOU
>
> Ramon Triana wrote:
> > Need info how to pass the break command with VBA
> >
> > thank you
> >
>
0 Likes
Message 10 of 11

Anonymous
Not applicable
Shuuuuuuuuuuuuuuut these is a pain in the neck it is so simple in Lisp or
VL..
i finding every day that these VBA w Acad is a bad deal..unless some one
develop a complete function library to manipulate Acad entity to VBA is not
work the effort them.

sorry by my spelling
can program by not spelling 🙂

Thnak You all

--


---------------------------------------------------------------------
"Are you still wasting your time with spam?...
There is a solution!"

Protected by GIANT Company's Spam Inspector
The most powerful anti-spam software available.
http://www.giantcompany.com


"Ramon Triana" wrote in message
news:DF273D149852A4DA11DA01D258EED771@in.WebX.maYIadrTaRb...
> Need info how to pass the break command with VBA
>
> thank you
>
> --
>
>
> ---------------------------------------------------------------------
> "Are you still wasting your time with spam?...
> There is a solution!"
>
> Protected by GIANT Company's Spam Inspector
> The most powerful anti-spam software available.
> http://www.giantcompany.com
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.530 / Virus Database: 325 - Release Date: 10/23/2003
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.530 / Virus Database: 325 - Release Date: 10/22/2003
0 Likes
Message 11 of 11

Anonymous
Not applicable
One solution I use to caculate points is to draw 2 semi-circular arcs with a
center point where your insertion point will be and a radius corresponding
to the block size. Using intersectWith in VBA - you'll easily get the end
points of the new lines. No calculations are necessary.

After you have both intersection points. Generate 2 lines. One from the
StartPoint of the original line to one of the intersection points, and a
second to the 2nd intersection point. Compare the lengths. The short is
the correct line. Redefine the longer lines Startpoint to the End point of
the original line and you're done. Well - except for making sure all the
properties match the original line.

A long winded explaination, but it is actually a simple process.

-George


"James Belshan" wrote in message
news:20C326E026D306496E8280EEC6E20DCB@in.WebX.maYIadrTaRb...
> I'm not at all trying to sound snide or restate the obvious, but it sounds
> to me like the thrust of Ramon's question is *how* to calculate the new
> endpoints. There've been a few posts on this, and it doesn't look like
> there are any simple solutions...
>
http://groups.google.com/groups?scoring=d&q=trim+block+group:autodesk.autocad.customization.vba
>
> It looks like Ramon could use GetBoundingBox to find approximate break
> points of a block if it's not rotated.
>
> Ramon, if you do find some way to use SendCommand to run BREAK or TRIM or
> something similar, you'll probably need to use (handent) to input the
block
> and line objects to the command line. Similar to...
>
http://groups.google.com/groups?q=handent+group:autodesk.autocad.customization.vba&scoring=d
>
> Sorry I can't be of more help than this, but this doesn't sound too easy.
>
> James
>
>
>
0 Likes