AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

copy part of polyline intersect with rectangle

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

copy part of polyline intersect with rectangle

 

 

 

 

original.png2.png3.png

Hello 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
hgasty1001
in reply to: imagination_s

Hi,

 

A viewport should make the clipping for you, but maybe you want another thing, in this case, just copy the original polyline (in order to keep the original) and trim the copy using sendcommand  (there is no trim or extrim method in VBA, the tricky part would be selecting the right side of the polyline) . Otherwise you will need to implement a clipping algorithm.

Finally, yes, intersectwith and getboundingbox method should help a lot.

 

Gaston Nunez

Message 3 of 3
imagination_s
in reply to: hgasty1001

Thankyou for 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