如何将VC6中的图形传输到Autocad [英] How to transfer graphics in VC6 to Autocad

查看:87
本文介绍了如何将VC6中的图形传输到Autocad的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用VC ++ 6编写工程设计程序.我希望将工程图转移到Autocad.我知道我将不得不用Lisp编写代码.但是我应该在哪里编写这段代码.有人会引导我吗?
关于VKTamhane

I write engineering design programs in VC++6. I wish to transfer the drawings to Autocad. I am aware that I will have to write code in Lisp. But where should I write this code. Will anybody guide me?
Regards V.K.Tamhane

推荐答案

事实并非如此: AutoCAD 通过 AutoLisp 和/或提供自动化 VBA ,但这意味着您 嵌入" 一些代码到 AutoCAD 中以扩展其功能;例如,您可以编写 AutoLisp VBA 例程,以从您自己的文件格式加载图形.

如果您有一个用 VC6 编写的项目,则可以添加它的功能,以将工程图导出到 DXF 文件,然后将其加载到 AutoCAD 中.您可以在互联网上找到很多 C/C ++ 库来做到这一点.

我个人使用了 dxflib [ ^ ]将 DXF 导入/导出功能添加到我的某些软件中.
It''s not so true: AutoCAD provides automation through AutoLisp and/or VBA, but this means that you "embed" some code into AutoCAD to extend its capabilities; for instance you can write an AutoLisp or VBA routine that load a drawing from your own file format.

If you have a project written with VC6, you can add it functioalities to export drawings to DXF files and then load them into AutoCAD; there are plenty of C/C++ libraries that you can find on the internet to do that.

Personally, I used dxflib[^] to add DXF import/export functionalities to some software of mine.


这篇关于如何将VC6中的图形传输到Autocad的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆