gnanapaul Posted May 26, 2010 Posted May 26, 2010 Hi Everybody, How can find length of selected polyline using vc++. i am using vs98 and autocad 2000. any help will be appriciated. thanks.. Quote
jwkilgore Posted May 26, 2010 Posted May 26, 2010 I took a class back in college on this subject. We wrote C++ programs that assigned user attributes to AutoCad objects (v. 12 DOS). Instead of just a line it was a W12x30, piece mark BM3, weighing xxx lbs, etc. We also wrote programs to push info to CAD using either a data file or user input, and programs to query the drawing and pull info. I'm sure that we had at least one program where we could run it inside AutoCad, select a line (or maybe a pline), and it tells us the length or sends the length to a data file. Unfortunately, after posting this big tease, I have to say that I would have no idea how to do this today. All I can do is confirm that it CAN BE DONE. Don't give up, someone out there has the answer. Quote
seth007 Posted May 27, 2010 Posted May 27, 2010 Read true the ObjectARX documentation that comes with the ObjectArx pack you can download from autodesk website, that should give you insight in C++, C#, or VB NET programming to autoCAD. The feature you ask is very easy to program, just follow some of the examples you will find in the pack and you will get there... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.