×
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

Adding an equation to multiple parts

Adding an equation to multiple parts

Adding an equation to multiple parts

(OP)
I have an equation that i want to add to every *.sldprt file in the database.  The equation is as follows:

"BlankSize"=Part.Extension.CreateMassProperty.SurfaceArea*775.00155

What would be the easiest/quickest way to go about this?  I am unfamiliar with using equations, so the only way I would know to do this would be to open each file and add it in one by one.  BTW I am using SW2007 SP4.0

Thank you,
     Matt

RE: Adding an equation to multiple parts

Matt,

I think you'll have to add it to each file, but I'll bet someone on this forum can help you with a macro to expedite that effort.

You might be able to add this equation to a blank part file and then save that as your part template.  Then any new file from this template should already have the equation.

- - -Updraft

RE: Adding an equation to multiple parts

Indeed, a macro is probably the only way to do this quickly.  However, writing the macro may take a while depending on your familiarity with VBA.  How many part files are "in the database"?  If it's less than 50 it would probably be faster to just add them manually.

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