Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

macro entry point

Status
Not open for further replies.

seedie54

Automotive
Dec 16, 2001
6
hello all

I am designing a solidworks MACRO to extract dimensions and input to excel. Previously, i have just had

Sub Main()
...
End Sub

Now, i have added an extra function, which main() calls.

Sub Main()
...
function
...
End Sub
--------------------------------
Sub function()
...
End Sub

My problem is that when run from SolidWorks (not the editor debugger), the macro enters the function, rather than main!?!?!?!

What am i doing wrong?

Thanks

Seedie54
 
Replies continue below

Recommended for you

I think that Main has to be the last sub in the module. It does not make that much sense, but seems to fix the problem. DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor