Hello
I searched in the forum, and I couldn't find a solution to my problem...
I'm looking for an icon to make my job easier...
The desired function is as follows: Save as, then as PDF, without path management, since this icon will be applicable for all files...
Thank you in advance
Friendships
You need to create a macro for this.
See with Lucas Prieur, he masters.
You should find this in the Tutorials.
4 Likes
You need a macro (which should be pretty simple given what you're describing).
Then, to create the button, follow this tutorial:http://www.lynkoa.com/store/fr/tutos-formations/formations/creer-un-bouton-macro-dans-solidworks.html
3 Likes
bart
March 26, 2014, 10:44am
4
All you have to do is create a macro.
Launch a new one, and pretend you're saving-.pdf
Stop your macro.
Then you just have to insert it with the icon of your choice in your menu.
Good luck.
2 Likes
Be careful @Bart!
I tried your method and if we limit ourselves to that, the macro is used to save PDFs always under the same name and in the same folder : the one saved during the macro!! Less useful...
So this method can be a base but needs to be reworked...
1 Like
bart
March 26, 2014, 12:50pm
6
As much as for me, I hadn't seen the subtiity of the thing... ^^
In this case, do the macro as described above, and manually modify it so that it asks for the recording path.
pl
March 26, 2014, 4:08pm
7
Hello
As mentioned above, you can use the macro function by learning, then insert a "browse".
A way to open an explorer to browse in VBA:
http://www.your-save-time-and-improve-quality-technologies-online-resource.com/vba-select-folder.html
I think the best thing to do is to start by yourself, macros are very useful in many cases to save time.
If you can't do that, paste the macro here and I'll watch.
Good luck!
1 Like
Here's a complete example of a VSTA macro
To be executed on a saved plan
It creates a PDF and DXF in the same folder as the SolidWorks document
In addition with examples of how to manage export options (DXF version, enable PDF color)
I commented on the code, it needs to be adapted...
export.zip
6 Likes
gt22
March 27, 2014, 8:29am
9
@jfaradon +1
it's going to take a day for me to put my nose in the macro I'm a real buzzard ;-(
thanks for the macro
@+ ;-)
2 Likes
To run it with a button you just have to create a custom "Macro" button, see screenshot
and select the DLL, (once unzipped choose DLL in the file selection box)
...\Export\SwMacro\bin\Export.dll
This creates a shortcut on the macro
sans_titre_-_3.png
7 Likes
gt22
March 27, 2014, 8:38am
11
@jfaradon
I can see that we don't speak the same language both ;-(
I'm going to try to make a promised effort
don't hit my head
@+ ;-)
1 Like
Hello
I've tried several ways, but I can't... It must be said that I have never done macro....
Could someone help me?
Friendships