Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

copy part of pline interesctwith rectangle

2 REPLIES 2
Reply
Message 1 of 3
imagination_s
266 Views, 2 Replies

copy part of pline interesctwith rectangle

1.png2.png3.png

Hellow Everyone,

Could you please help me with something

I need to fiind a way to copy part of polyline  when the polyline intersect with a rectangle.Put that part of the polylines in separate layout.

But doing this thru autocad  2008 vba macro

A know there is something with getboundingbox and interechwith.

Thankyou so much for your help

The pictures above shows what i want

2 REPLIES 2
Message 2 of 3

Hi,

 

>> But doing this thru autocad  2008 vba macro

You should then ask in the forum for AutoCAD >>>Visual Basic Customization<<<

 

To start: first calculate the intersection points between the rectangle the the polyline, then check which parts of the polyline segments are inside the rectangle, which segments are crossing the rectangle and which segments are outside the rectangle. And now create the new polylines based on the inner ones + the crossing segments up to the intersection point.

 

Good luck, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 3

Thankyou so much for your hint.

I will try stept by step to get done all of this measurments

Thankyou again for all your help

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

Post to forums  

Autodesk Design & Make Report

”Boost