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)
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
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
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
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
Thanks for your time
RE: MERGE 2 MACRO
Deepak Gupta
CSWE, CSWP, CSDA
SW 2011 SP5.0 & 2012 SP3.0
Boxer's SolidWorks™ Blog