Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: PAT44
  • Order by date
  1. PAT44

    SOLIDWORKS API SAVEAS3 PROBLEM

    Hi, I wrote a macro that takes the active part, determine if it s a part or a drawing, and if it s a part, then change some properties and perform a saveas with the same name. Everything is ok, but for the drawing, the macro select every sheet, copy, then open new template, paste sheet , close...
  2. PAT44

    EXECUTING CODE DURING PACK AND GO

    Thanks but I m using 2010 version of solidworks and I think api pack and go fonction only comes with the 2012 version.. If not, I m not able to make it run.
  3. PAT44

    MERGE 2 MACRO

    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
  4. PAT44

    MERGE 2 MACRO

    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...
  5. PAT44

    MERGE 2 MACRO

    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...
  6. PAT44

    RUN MACRO ON EACH PART WITHIN ASSEMBLY

    and the code you send me is great but it run my code only in the assy. My code is to edit equation and the equation appears only into the assy but I wish that equation to be in each parts.
  7. PAT44

    RUN MACRO ON EACH PART WITHIN ASSEMBLY

    That is because when I pack and go an assy, the desing date still the first date. But I the parts and assy get change and then I wish to reset that date, so the only way should be to import each part in a new template. I already have a code into template that set the property...
  8. PAT44

    RUN MACRO ON EACH PART WITHIN ASSEMBLY

    When you create a new part, you select new and part to get the template open. You can then insert a part into this new template. Is it possible to insert each part into a new template by the code you just gave to me?
  9. PAT44

    RUN MACRO ON EACH PART WITHIN ASSEMBLY

    it is possible to open my assembly, then lunch a macro that will open the first part within the assy, execute a macro, save and close the part, then do the same with second part.. with all part in the assy ?
  10. PAT44

    RUN MACRO ON EACH PART WITHIN ASSEMBLY

    Hi, I wish to open and execute a macro on each file from an open assy. How can I do it? Thank you
  11. PAT44

    EXECUTING CODE DURING PACK AND GO

    Actualy, I wish the Author name to be deleted when a pack and go is made. I already have a macro that add this information when a new part or drawing is created but when a pack and go is made, I need this information to be deleted for the macro can proceed with the right information. I know it...
  12. PAT44

    EXECUTING CODE DURING PACK AND GO

    Hi, I would like to know if it s possible to execute a code on each files within pack and go. For exemple, if I pack and go an assembly, automaticaly when I ll press the save button, each files will have their properties deleted before they get saved. Any ideas? Could be by using task...

Part and Inventory Search

Back
Top