×
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

Saving in STEP format using macro

Saving in STEP format using macro

Saving in STEP format using macro

(OP)
Hi all

I want to run a Macro , that when I have a .sldprt open , it saves the file in STEP format in a particular folder, using its own name. at the moment I have this file , but it can be used only for one file name

Sub main()

Set swApp = _
Application.SldWorks

Set Part = swApp.ActiveDoc
longstatus = Part.SaveAs3("E:......\STEP\13F01020.STEP", 0, 0)
End Sub

RE: Saving in STEP format using macro

(OP)
Let's ask a better question

since I found the one that does this , but a Macro that could open the file from it's source , and save it in another folder automatically for all the files of that folder

is this possible ?

RE: Saving in STEP format using macro

Any reason why not "save as" to STEP and browse to the folder?
Or, is there another step that you want to do that I don't understand.

Chris, CSWA
SolidWorks '15
ctophers home
SolidWorks Legion

RE: Saving in STEP format using macro

(OP)
There are too many files ! the main reason of using macro

RE: Saving in STEP format using macro

You can use SolidWorks Task Scheduler to export all files in a folder to STEP.

Chris, CSWA
SolidWorks '15
ctophers home
SolidWorks Legion

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