VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 5
lyz77
208 Views, 4 Replies

Trim

How to make use of the objline as a guide to trim all selected area in the drawing using VB?
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: lyz77

Check each selected entity's IntersectWith against the "trim" line. If
it does intersect, change the selected entity's endpoint to the
coordinate returned by IntersectWith. Hardest part is to figure out
which of the endpoints [assuming a line] is closest to the returned
point.


===============================
Mike Tuersley
PhD @ CADalyst's AutoCAD Clinic
http://www.cadonline.com
Message 3 of 5
lyz77
in reply to: lyz77

Sound very difficult! I dun think I'm capable of getting it done!
Message 4 of 5
Anonymous
in reply to: lyz77

You might want to have a look at the Curve class in
AcadX.arx. It has a method that can break entities
at one or more points, and you can use it to emulate
the TRIM command. After breaking, you can erase any
objects that are not inside of your trim boundary.

http://www.caddzone.com/acadx

"lyz77" wrote in message news:f1264dc.-1@WebX.maYIadrTaRb...
> How to make use of the objline as a guide to trim all selected area in the drawing using VB?
Message 5 of 5
lyz77
in reply to: lyz77

Does it mean that I need to know exactly the coordinate of the line that is intersecting with and assign an objline to that line on the drawing in order to adjust the endpoint? Possible to use selectionset to select a number of vertical objline that are insecting with a single horizontal line?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost