Solved

Autocad compatible drawing class library

Posted on 2002-07-18
6
277 Views
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.
0
Comment
Question by:siekiew
[X]
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
  • 3
  • 3
6 Comments
 
LVL 31

Expert Comment

by:Zoppo
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,

ZOPPO
0
 

Author Comment

by:siekiew
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.

Regards,
siekiew
0
 

Author Comment

by:siekiew
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.

Regards
siekiew
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 31

Accepted Solution

by:
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.
0
 

Author Comment

by:siekiew
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.

0
 
LVL 31

Expert Comment

by:Zoppo
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...
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 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