×
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

Auto file rename with solidworks and VB

Auto file rename with solidworks and VB

Auto file rename with solidworks and VB

(OP)
Hi,

I like to automate the renameing of solidworks files (numbers). I tried to do this with recorded "save as" code in VB but the references in solidworks drawings are then broken. Is there anny vb code with the "solidworks rename" type of rename?

Thanks
Ronald

RE: Auto file rename with solidworks and VB

What I do manually tells me the drawings have to be open when you do the part or ass'y file save as . . .
The reference then updates, but you also have to do a drawing file save as . . .
Can the part file reference in the drawing file be changed with a VB program?? hmmm.

'thinks not = disappears'

--
Hardie "Crashj" Johnson
SW 2008 SP4
Nvidia Quadro FX 1000
AMD Athalon 1.8 GHz 2 Gig RAM

 

RE: Auto file rename with solidworks and VB

(OP)
Thanks Snowcrash,

I also had to rename the drw file but i did this with windows rename...
Now i first open the part and after that the drawing an then save as for both... it works! So thanks a lot!
Ronald

RE: Auto file rename with solidworks and VB

To do this w/ API, you need to use the SW Document Manager object.  This is advanced stuff you will not learn from recording macros.  Also, the SWDM requires a license key.  The license key is free but you must request one.

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