×
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

MERGE 2 MACRO

MERGE 2 MACRO

MERGE 2 MACRO

(OP)
Hi,
    I have 2 macro that are close to what I need. The first one is to open a browser to select in wich folder you want to save the active file as pdf. The second one is for changing material in all parts within the specified path.It open each part one by one, change material and save & close it.

  What I need is to open browser to select the folder where it will open each document and, if it s a part, open new part template and insert the part, close old part and overwrite it with the new part. Same with assy, and copy all sheets and paste it into the new drawing template and overwrite it as well.

I m sure something can be done with it! But I m not so good with vba and api code.

 Any ideas?
(the macro are available at http://sw.fcsuper.com
save as pdf with folder selection and change bulk material)

RE: MERGE 2 MACRO

Make one a subroutine in the other or make both subroutines ina third macro. Of course you then have to make sure that all global variables have the same name in both subs.

TOP
CSWP, BSSE
www.engtran.com  www.niswug.org
www.linkedin.com/in/engineeringtransport
Phenom IIx6 1100T = 8GB = FX1400 = XP64SP2 = SW2009SP3
"Node news is good news."

RE: MERGE 2 MACRO

(OP)
Ok, I tried to create a new module and to call it...but I dont know why, it does not work. the browser is not displaying and the module dont play.

 I replace the code into the change material macro for other things (I tried to open new part template and insert the part into it, close old part and overwrite it with the new one), but nothing work. I m not able to put the path into variable or something nor the name to save it.

I m poor to assign variable..!

 

RE: MERGE 2 MACRO

(OP)
yes, and it s not an easy thing. Do you know why when I use part.getpathname=x and I use Part.InsertPart2("X", 515) it dont work? The path is correct (i test it with a msgbox and it was right!), so i dont know!

Thanks for your time

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