|
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 |
|