×
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

API Help Me

API Help Me

API Help Me

(OP)
I am working on the never ending rebuild all configs macro.  I have been able to get the macro to force rebuilding of all configs and export the Config names and a true or false value to a file on my desktop. I am still having one problem:

swModel.ForceRebuild3

I have noticed that when I force rebuild of all configs, the macro only returns a false value for a configuration if there is an error in an actual feature, but it doesnt return a false value if there is an error in the sketch of of feature.  Is it possible to return values based on Sketch errors, I cannot find anything in the help files regarding sketch errors.

RE: API Help Me

(OP)
Nevermind, I think it is working correctly.  Perhaps someone will help explain this to me though.  I opened a file that was not yet converted to 04 (I get the little message the file will be converted when saved).  Well after running my macro, it rebuilds all configs (about 20) and then returns my results in a Text file on my desktop.  The results were coming back True for all but one config.  When I go to the model and change through the configs manually I was getting errors on a bunch of them due to an overdefined sketch.  I deleted the overdefining dimensions - left the sketch under defined - re-ran the macro - same results (of course).  I then closed the model but I didn't save it, when I opened the model back up I still get the file will be converted when saved message.  I am expecting to find errors again just like every other time but now there are now errors, I didn't save the file, the sketch is full defined with no errors and I cannot reproduce the results I was getting the entire time I have been working on this macro.  I am thinking perhaps my macro is behaving fine and that there really weren't errors to begin with, could Solidworks have been falsely showing errors in the FM, and if so why not now, the saved date on the file is still a 2003 date.

RE: API Help Me

It's Murphy playing his tricks ...
It's Windows ...
It's Monday & the wind is from the East ...
It's Dalton McGuinty telling the truth ... Yeah ... right!!!

from (the City of) Barrie, Ontario.

Support bacteria - they're the only culture some people have

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