AnsweredAssumed Answered

How to use the VBA connect edrawing

Question asked by Yong Ning on Sep 15, 2014
Latest reply on Sep 15, 2014 by Yong Ning

I will only VBA programming, but not with C programming

 

*************************************

Solidworks help file →

Use of the SolidWorks API assumes that you are familiar with VBA, VB.NET, Visual C#, Visual C++ 6.0, or Visual C++/CLI.

Help me, How to use the VBA connection, edrawing

****************************

for example

 

3.jpg

Quote Solidworks 2012 type library

VBA connect Solidworks Code.

  Dim SwApp As SldWorks.SldWorks,

    Set SwApp = GetObject(, "SldWorks.Application")

 

2.jpg

Help me

Quote EModelView 2012 Type Library

   Help me, How to use the VBA connection, edrawing

 

 

*******************************

Follow code , don't open SaddleS.Easm file.

 

Private Sub llll()

  Dim e As New EModelViewControl, FileName

  FileName = "E:\MyWorkSummary\BESmodel\卧式储罐\Tank2008\SaddleS.Easm"

  e.OpenDoc FileName, False, False, False, ""

End Sub

 

 

**********************************

API: eDrawings 2012 API Example (VB.NET, C#) | SOLIDWORKS Forum

https://forum.solidworks.com/docs/DOC-2232?sr=search&searchId=581aeb12-b1ac-44bf-b375-66a8325dbfcc&searchIndex=2

 

******************************

Outcomes