×
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

VB Script to replace Links

VB Script to replace Links

VB Script to replace Links

(OP)
I am trying to find any information/advice on writing a VB script to replace links for files in a product. The each file is located in one of two folders (the file would be in either the std. part folder or the ref folder). The replace operation is quite repetitive. It would be nice to write a script which would go through each part in the tree and search both folders to find the file and link to it. Any help would be most appreciated.  

RE: VB Script to replace Links

Something to consider is process change.  If you use publication with the same name on linked and constrained items the replace command will automatically update these links.

Regards,
Derek
 

Win XP64
R20/21, 3DVIA Composer 2012, ST R20
Dell T7400 16GB Ram
Quadro FX 4800 - 1.5GB

RE: VB Script to replace Links

This is a little bit more complicated...first you need to loop thru the specification tree, get the parts name, probably you have (for example) a text file with corresponding new parts name which will replace the old ones (or you have your own criteria), get from there new parts name, then search this new part in your designated folders and replace in your catproduct....

If you post some code maybe we can help you.

Regards
Fernando
 

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