×
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

find references macro

find references macro

find references macro

(OP)
does anyone know of a macro that will find the references and copy the files for a part? Its rather tedeous to have to go through every part and do it manually.

RE: find references macro

mAX,
In your assembly you can click File, find references, and then copy the files.  This is very easy.  

dsgnr1

¿)

At some point you just have to shoot the engineer and build the dang thing.

RE: find references macro

(OP)
well yes, I know, it is relativly simple, however its fustrating when you have to do that 50 times over for each project everytime it is updated, my main contention here is that all this work is almost completely non creative, and as such could be handled by a macro.

RE: find references macro

so it really is an assembly, rather thatn a part that you wish to find the references...then you want a macro to perform this.
Have you looked at the faq's under vb or programming or whatever they're calling it now?

Have you searched this forum for links to sample code?

these things (unlike my first reply) may help.

regards,

dsgnr1

¿)

At some point you just have to shoot the engineer and build the dang thing.

RE: find references macro

Quote (nmaxwell):

however its fustrating when you have to do that 50 times over for each project everytime it is updated

Sounds like what you want need is PDMWorks.

Flores
SW06 SP2.0

RE: find references macro

You can do this very easily through a macro with a rudimentary understanding of the SOlidworks API:

1) Use "getDependencies2" method to return an array of all referenced documents in the assembly

2) Using your preferred VB copy method (FSO works well), use the names obtained in step 1 (odd numbered elements will be the full path names if you start at 0) to copy the files where you want them to go

Loop through it again to copy multiple assemblies.

RE: find references macro

(OP)
alright so I take it there arent any such macros already, im sure its fairly simple to do, once i get some idle time ill look into it thanks, and we do use pdmworks.

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