几何尺寸与公差论坛

 找回密码
 注册
查看: 756|回复: 0

【转帖】help with opening and saving edrawings in vb2008

[复制链接]
发表于 2009-4-12 21:05:13 | 显示全部楼层 |阅读模式
help with opening and saving edrawings in vb2008
hi,
i've written a number of vb macros within solidworks api but i'm new to writing standalone vb programes, so can anyone give me an example of how to get started?
using visual basic 2008, all i want to do is open a dxf file with edrawings and then save it back as an edrawing file.
i am uncertain how to call up the edrawings.dll and where to insert it etc,etc. hopefully a simple example will give me the kick start i need.
cheers
hi,
have put people off by mentioning vb2008? any vb.net version will do, just to give me a clue about how to declare emodelview and emodelviewcontrol and do i have to use createobject or getobject? i am going around in circles at the moment.
cheers.
ade,
this is a very thin subject. pretty much no documentation exists. however, below find a few facts i have gathered:
1. using the emodelview.dll gives access to an emodelviewcontrol, which is not a control to use on a windows form for example, but what seems to be a stand alone control that must some how link into an active edrawing.exe process, or create its own.
2. using some hard-to-find interop dll files you can create a windows control that acts as an edrawing control and works a treat.
as the first example is one i have not managed to get working with my first attempt, i moved to the second.
thanks for the help luke,
from your prompts i now know what to expect, edrawings runs in the form not as a standalone exe doh!
i believe i'm now heading in the right direction,
cheers again,
adrian
very useful information luke... and you're definitely right... documentation for working with edrawings is definitely sparse...
is that the only way that edrawings can run... in the vb form... or can you open the standalone exe?
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 11:02 , Processed in 0.035377 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表