×
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

Simple VB6 question

Simple VB6 question

Simple VB6 question

(OP)
I have a vb program to fill custom props, and I would like it to regen the drawing.  What is the vb6  statement for that?

Thanks

RE: Simple VB6 question

You can do a search in the Solidworks API help for "ForceRebuild()" or "Rebuild()" methods of the DrawingDoc object.

ForceRebuild will rebuild the drawing even if there are errors in it, whereas Rebuild will stop the rebuild if there are errors.  To use Rebuild, you have to put some error-handling in to your code to tell it what to do when there are errors, which you may or may not want.

RE: Simple VB6 question

swRebuildAll
 All
 Rebuilds geometry that has not been regenerated.
 
swForceRebuildAll
 All
 Forces a rebuild of all geometry.
 
swUpdateMates
 Assembly
 Only rebuilds mates, which is much faster than rebuilding the geometry. Especially useful for  Component2::Transform.
 


Syntax (OLE Automation)

retval = ModelDoc2.ForceRebuild3 ( topOnly )

Input:
 (VARIANT_BOOL) topOnly
 TRUE rebuilds the top level of assembly only; FALSE rebuilds the top level assembly and all subassemblies
 
Output:
 (VARIANT_BOOL) retval
 TRUE if the rebuild is successful, FALSE if not
 

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