Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Dec 16, 2001
Messages
6
Location
AU
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
 
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

Back
Top