Hi Everyone,
I'm writing a code using VBA editor, the objective is pretty straight i want to create a field within solidworks (so that i don't have to look on both screens to switch between solidworks and eDrawings) in which i can choose my dwg/dxf file and see them while doing my sketching/drawing for reference.
Something like this (This has to be always in front of solidworks interface while it's on.)

Hi any suggestions
i dont see any eDrawing controls or whatsoever!
no matter what i try
and they say size doesn't matter
Hi Simon, thanks for your input havn't tried that yet, i also wanted to know that if i were to embed Draftsight (it would give me more control over dwg files) in place of eDrawings (yes we can markup, but it's basically a viewer) how would i achieve that.
Sorry for disturbing you, i knew you wouldn't mind if i ask you. Thanks for correcting me there see you already helped me.
Are you saying you just want your drawing to appear on the same screen (forefront) so you can just flick your eyes up and down to work from it? Or am I being stupid again and missing the whole point?
That's the whole point, no you are not being stupid nor you have ever been But here i'm not disclosing the real motive (Sorry but can't disclose it), needed this functionality for something else.
Can you just not manually adjust the size of the eDrawings window (dependent on size of drawing) and leave it on top?
well in Windows we can't just assign the any window to be on top if i click on solidworks then eDrawings goes in background. But ii found out there are some 3rd party programs that can do that.
Now that's called a screen, wish i had that big screen.
With your UserForm active, right click on the controls toolbox and choose Additional Controls...
Select eDrawings 2018 Control (or whatever version you want)
That adds the control to the toolbox.
Click on the icon for it and then drag a rectangle on your user form where you want the control to go.
In the code, possibly in UserForm_Initialize, add a line like this:
EModelViewControl1.OpenDoc "C:\path to your file\Part1.sldprt", False, False, True, ""
Or............
If you have a single MONSTER screen like Michael Lord does, you could just have both Solidworks and eDrawings open side by side.
Dave.
Hi Sumit,
I appreciate the vote of confidence but I wouldn't have a clue!
Oh! BTW, you've spelt 'Cancel' wrong in your little dialog box..............
Are you saying you just want your drawing to appear on the same screen (forefront) so you can just flick your eyes up and down to work from it? Or am I being stupid again and missing the whole point?
Can you just not manually adjust the size of the eDrawings window (dependent on size of drawing) and leave it on top?
Dave.