×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Design Tables + Server Busy with VBA Excel Macros

Design Tables + Server Busy with VBA Excel Macros

Design Tables + Server Busy with VBA Excel Macros

(OP)
Hello,
We have a SolidWorks model that uses a very large Excel design table (over 50 dimensions).  Just before rebuilding is complete, which seems to take longer in SW2003, sometimes a message box pops up saying Server Busy, and gives the option to re-try to connect to Excel or cancel.
We have written a VBA macro in Excel to open Solidworks and insert the design table.

Our re-seller says design tables are limited to 24 dimensions and that is the problem.

  I found something about the OLE server being controllable from within VB on another board-this might work on this problem.  The command in VB is:
   App.OLEServerBusyTimeout = 20000
But this command does not work in VBA Excel macros.

Questions:
1.  Has anyone else experienced similar problems with "large" design tables from Excel in SolidWorks 2003 and the Server Busy message box?  Is there any way to eliminate this from the SolidWorks side?  Is there a way to speed up the re-build time after inserting design tables?

2.  Any VBA experts familiar with how to increase the OLEserverbusytimeout in a VBA Excel macro?


Any other ideas are appreciated.  The idea behind our macros is that the user just will hit a button in Excel and have the SW model open and run FEA without having to enter anything else, so having the Server Busy message box wait for user inputs will kill the usefulness of our macro.


Thanks to all.

RE: Design Tables + Server Busy with VBA Excel Macros

If you have a curser in a cell of Excel, SolidWorks cannot access Excel. If you try inserting a BOM in a drawing when the curser was in a cell when working in Excel you will have problems.
This may not be your problem but it's a thought.

RE: Design Tables + Server Busy with VBA Excel Macros

Does any app. abort after the message box pops?

Sometimes, when an OLE integration takes too long to end, this kind of message pops up. I select reconnect (sometimes more than once) and, after a while, it all end successfuly. Now that you are posting this problem, I think this only occours with Excel, when linking to another app. (not only SW).

I am not experienced in large DT's.

Regards

RE: Design Tables + Server Busy with VBA Excel Macros

I don't know what causes these "server is busy" but you just have to wait it out. I have waited sometimes 30 minutes before. The larger the DT the longer the waits get.

Your VAR is wrong, DT are only limited to what excel offers you. I have built some extreme DT in past jobs. If I wasn't under a non-disclosure agreement I would show them to you.

Once I start getting those problems I restart my computer and sometimes that helps.

I don't think that VBA API code will help you out. I would try but I don't think it will much for you.

If I remember anything I used to do to get past that problem I will follow up here.

Regards,

Scott Baugh, CSWP
3DVision Technologies
credence69@REMOVEhotmail.com
http://www.3dvisiontech.com
http://www.3dmca.com

*When in doubt always check the help*

RE: Design Tables + Server Busy with VBA Excel Macros

How about showing the code to us that you are using to open the Design table?  Are you opening it in a new window, or in SolidWorks?

RE: Design Tables + Server Busy with VBA Excel Macros

(OP)
Thanks for all the suggestions so far.
Here's the part of the VBA Excel macro that
brings the design table into SolidWorks.
At this point in the macro, Excel and SolidWorks
are open, and the SolidWorks model is active.
The design table is in a separate Excel file
from where the VBA macros are.


Part.InsertFamilyTableOpen (mypath + "\tempdestable.xls")
Part.CloseFamilyTable

As soon as the design table closes, the part re-builds,
and that is where it hangs up sometimes.



This next part does not work in VBA.  Found this on
another message board where someone had the same
Server Busy message, but in standalone VB.  This VB
command is supposed to extend the OLE server
timeout to a larger than default time.

   App.OLEServerBusyTimeout = 20000


Thanks all.

RE: Design Tables + Server Busy with VBA Excel Macros

We have had this problem when regenerating large parts that are driven by Excel spreadsheets as well.  Our solution was to add this line at the start of the macro:

Application.DisplayAlerts = False

FYI, our parts are driven with over 4000 linked dimensions between Solidworks and Excel.

This seemed to help us, I hope it helps you.

RE: Design Tables + Server Busy with VBA Excel Macros

Design tables are neat, you can even trick custom Excel stuff into them (drop down lists, etc), but there is still the possible timeout error you describe, the annoying pop up window that cant be removed without the cheese, and the max limitations of Excel itself.

But design tables are primaRILY for people who CANT write macros. Once you reach that point of diminishing returns,
dump the contents of the design table into a vb macro,
and blast the configurations straight from code. Aside from
removing the limitations descibed above, you also have the oppurtunity to ensure the correct data is entered beforehand (if you're any good with creating forms)

You'll also then have the ability to tweak parameters that are not available thru Design Tables.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources