Solved

Autocad compatible drawing class library

Posted on 2002-07-18
6
270 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
  • 3
  • 3
6 Comments
 
LVL 30

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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 30

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 30

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now