.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to determine width of square by vb.net

2 REPLIES 2
Reply
Message 1 of 3
hoathuongphuoc
354 Views, 2 Replies

How to determine width of square by vb.net

hi All,

I have a difficult problem. This is, how can i determine width of a square when i click inside it. And i have attach file autocad.

 

2 REPLIES 2
Message 2 of 3
zrobert
in reply to: hoathuongphuoc

Hi;

 

Try start with this post. This is C# code, but but it will easily translate.

This way you can find boundary object collection which contain probably 4 lines or 1 polyline

object (depending on the type of objects that define the rectangle). Then you can work around with finding extents or line start and end points to obtain rectangle width.

 

http://adndevblog.typepad.com/autocad/2012/05/identifying-the-boundary-through-api-.html

Message 3 of 3
hoathuongphuoc
in reply to: zrobert

Thanks very much.

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost