Jump to content

Recommended Posts

Posted

Hi Everybody,

 

How can find length of selected polyline using vc++. i am using vs98 and autocad 2000.

 

any help will be appriciated.

 

thanks..

Posted

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.

Posted

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...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...