Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Autocad compatible drawing class library

Posted on 2002-07-18
Last Modified: 2013-11-20
I am looking for a autocad compatible drawing class library. I came across one at www.vdraw.com, which is what I wanted, but unfortunately, it is a ActiveX component. I prefer to have C++ library that support MFC. I don't mind if it is a commercial product.

Thank you.
Question by:siekiew
  • 3
  • 3
LVL 31

Expert Comment

ID: 7162194
Hi siekiew,

take a look at http://www.opendwg.org/
They tell they have a C/C++ library to load/save
.DWG files without Autocad ...

hope that helps,


Author Comment

ID: 7163716
Hi Zoppo,

Thanks for your response. I have a look at the opendwg, it is interesting, it may solve the file format problem, but still can't do what the vdraw can do, especially in editing of the drawing. I have tested VDraw, it allows us to use it just like Autocad without much effort. What I need to have is somthing like vdraw and at the same time allow me to control the input without going through the ActivX.


Author Comment

ID: 7166107
Hi Zoppo,

It looks like I have to go for the VDraw and use ActiveX. Do you have any advise regarding the use of ActiveX in MFC application? Someone told me that it is difficult.

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

LVL 31

Accepted Solution

Zoppo earned 200 total points
ID: 7168848
Hmm ... I don't think that use of ActiveX in MFC is too problematic ... it's just not as simple as in VisualBasic, but
not very much harder ... you can simply let the ClassWizard create wrapper classes for you ... then create the control (i.e. in a dialog) and use the wrapper classes generated.

IMO most problems occur if the ActiveX-interface isn't well documented. If it is well documented it shouldn't be a big deal.

Author Comment

ID: 7169084
Thanks for your advice. I have tested some example and it looks quite OK, but those things like VARIANT, SAFEARRAY, SAFEARRAYBOUND look a little bit scary for me. However, I believe I still can handle that.

LVL 31

Expert Comment

ID: 7169151
Well, yes, you may need to get used to use VARIANT, SAFEARRAY, SAFEARRAYBOUND ...

But, VARIANT and SAFEARRAY are implemented with MFC classes
COleVariant and COleSafeArray, and SAFEARRAYBOUND is simple I think...

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 131
Expand to include initial dialog with two choices. 9 80
ShiftLeft challenge 21 85
Execute multiple curl cmds with sleep and send output to file 10 104
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question