• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

solidworks double rescue

Lorenzo PigFolyd

Guest
Good morning.

can someone tell me in solidworks how it is possible to make double rescue? or I'll explain better: when saving a part the program automatically generates you both the file (in the specified folder) .sldprt as normal and a jpeg file.
same procedure with table setting, besides generating the .slddrw file automatically generates a .pdf file

I thank very much those who can help me
I
 
I can't tell you exactly, I just know that in a company I used it for.
was all automated within the program.
 
according to my opinion a macro is not enough, but there is need for an add-in, this allows you, working in the background, to manage the events of solidworks.
in the case of lorenzo, just intercept the event "save", "save as", in the various documents part and table, and "scatenare" in our case of the code that saves images or pdf.
Solidworks events like add-in is something I've handled several times in my applications and give excellent results, since you don't have to worry about launching any macros after saving.

I wanted to understand something:
- the files (pdf or images) where to be saved? in the same directory as the saved file?
- if it has already been saved, do I have to overwrite it? or create a copy with revision?
- if the rescue directory is the same for all orders, do I create over time a directory full of files? If yes, if on two different orders I find files with the same name though different, do I?

These are some of the cases that are encountered when dealing with programming, in fact it is more difficult to think about the casesistic than the macro itself.

So I would advise lorenzo to make a global assessment of his entire rescue process, so as to put down ribs (e.g., except always in the same director e.g. c:\temp, etc.), on this then we can work on it.

By the way? What do you need the jpeg of the model, couldn't you get the updated preview time at a time? I refer to the posthttp://www.cad3d.it/forum1/threads/34895-dove-risiedono-le-immagine-dei-preview-controllati-dai-thumbs-db

ciao
 
according to my opinion a macro is not enough, but there is need for an add-in, this allows you, working in the background, to manage the events of solidworks.
in the case of lorenzo, just intercept the event "save", "save as", in the various documents part and table, and "scatenare" in our case of the code that saves images or pdf.
Solidworks events like add-in is something I've handled several times in my applications and give excellent results, since you don't have to worry about launching any macros after saving.

I wanted to understand something:
- the files (pdf or images) where to be saved? in the same directory as the saved file?
- if it has already been saved, do I have to overwrite it? or create a copy with revision?
- if the rescue directory is the same for all orders, do I create over time a directory full of files? If yes, if on two different orders I find files with the same name though different, do I?

These are some of the cases that are encountered when dealing with programming, in fact it is more difficult to think about the casesistic than the macro itself.

So I would advise lorenzo to make a global assessment of his entire rescue process, so as to put down ribs (e.g., except always in the same director e.g. c:\temp, etc.), on this then we can work on it.

By the way? What do you need the jpeg of the model, couldn't you get the updated preview time at a time? I refer to the posthttp://www.cad3d.it/forum1/threads/34895-dove-risiedono-le-immagine-dei-preview-controllati-dai-thumbs-db

ciao
First of all I warmly thank you for the interest in helping me and in the exhaustive explanation.

back to us:
- the .pdf file (for table placement) and the jpeg file (for .sldprt) are in the same directory e.g. c:\disegni\biella
- .pdf and .jpeg files to each rescue are overwritten
- the directory will be different for each article e.g. c:\disegni\biella c:\disegni\pistone
- needs a jpeg file as for each item a printed image is placed in the warehouse drawer

thanks again for availability
I
 
In case you can wait a bit, I'd like to help you.
You don't have to feel in debt, but if you want to get rid of yourself, Christmas brings a bakery to a difficult family in your country,
on behalf of cad3d.

Good day
Thank you so much!
Have a good day
 
Hello I'm almost ready,
everything is integrated into solidworks in the taskpane, I just miss the installation package for the addin.
give me a little more time, while I anticipate a graphic preview.
The weather is my enemy... .
 

Attachments

  • Task.webp
    Task.webp
    29.3 KB · Views: 145
lorenzo pigfolyd 16.12.15 15.04
originally written by jenuary view message
Hello I'm almost ready,
everything is integrated into solidworks in the taskpane, I just miss the installation package for the addin.
give me a little more time, while I anticipate a graphic preview.
The weather is my enemy... .
Thank you so much!!
look your definitely great work
 
jenuary 22.12.15 09:38

I think it's complete now. Try it and in case you find any kiss, let me know.
the application was studied and head for solidworks 2015 64bit, it should also work in previous versions, but at 64bit anyway.
I bring you here under a series of images for installation, which for reasons of time, I did not manage to do it automatically, we will have to perform some small steps for installation.

first of all close solidworks.

1) unzip the archive "cad3d_savebackground_rev_1.rar" in the main disk of your pc, for example c:\ or d:\ etc, then you will find a director e.g. c:\cad3d_savebackground.

2) inside the folder one of the files is called
register cad3d_savebackground.bat

3)press right-click on it and press "change".
once opened, change the path to the letter of your disk (e.g.c:) and save.

4) press right button again over the same file as at point 3 and press "run as administrator"
this step is mandatory, because the file "bat" allows us to record the "dll" in the register, then it will be recognized by solidworks in the startup phase, and will be present in the "addants".
once you have done this step, a window of "commands prompt" will appear, where you will have to find a line with written
"types have been recorded."
press sending to close the mask.

5) Start now solidworks, in tools-> added, you will find a line with "cad3d", activate the spuns if they are not active, automatically you will create a tab in the taskpane related to the application "savebackground".


comments are well accepted on the merits and defects of the application, let's not forget that it is in rel.1.0, and we can adapt it to the various needs.

with the hope that it is useful and appreciated to many users, I take the opportunity to make the

Happy Christmas greetings to all
 
jenuary 22.12.15 09:38

I think it's complete now. Try it and in case you find any kiss, let me know.
the application was studied and head for solidworks 2015 64bit, it should also work in previous versions, but at 64bit anyway.
I bring you here under a series of images for installation, which for reasons of time, I did not manage to do it automatically, we will have to perform some small steps for installation.

first of all close solidworks.

1) unzip the archive "cad3d_savebackground_rev_1.rar" in the main disk of your pc, for example c:\ or d:\ etc, then you will find a director e.g. c:\cad3d_savebackground.

2) inside the folder one of the files is called
register cad3d_savebackground.bat

3)press right-click on it and press "change".
once opened, change the path to the letter of your disk (e.g.c:) and save.

4) press right button again over the same file as at point 3 and press "run as administrator"
this step is mandatory, because the file "bat" allows us to record the "dll" in the register, then it will be recognized by solidworks in the startup phase, and will be present in the "addants".
once you have done this step, a window of "commands prompt" will appear, where you will have to find a line with written
"types have been recorded."
press sending to close the mask.

5) Start now solidworks, in tools-> added, you will find a line with "cad3d", activate the spuns if they are not active, automatically you will create a tab in the taskpane related to the application "savebackground".


comments are well accepted on the merits and defects of the application, let's not forget that it is in rel.1.0, and we can adapt it to the various needs.

with the hope that it is useful and appreciated to many users, I take the opportunity to make the

Happy Christmas greetings to all
Great! !

perfect as soon as I return from germany I immediately try it.
only two questions:

1- where do I find the files?(sorry):biggrin:
2- I use sw 2016 will be ok equally?
 
hi, from what I see they restored the forum by cutting the attachments.
I'll give it back tomorrow.
 
Hi.
in 2016 should have no problem, even with windows 10.

Let me know how it works.
 

Attachments

  • Punto_2.webp
    Punto_2.webp
    5.4 KB · Views: 272
  • Punto_3.webp
    Punto_3.webp
    4.9 KB · Views: 240
  • Punto_4.webp
    Punto_4.webp
    22.8 KB · Views: 126
  • Punto_5.webp
    Punto_5.webp
    18.7 KB · Views: 264
  • Cad3D_SaveBackground_Rev_1.rar
    Cad3D_SaveBackground_Rev_1.rar
    144.4 KB · Views: 156

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.

Back
Top