Sorry for reviving an old thread, but just in case if you need a swconst.bas for SolidWorks 2004 you can download this from http://swtools.cad.de
Go to the macro page and scroll to the end of the page, there is a "macro" called mm_998.zip.
I made this for my own needs to copy/paste just the...
Beside the macro approach there is another easy way to select all faces to clear the color: select the face filter (standard shortcut is x), then switch graphic display to wireframe (not hidden line, pure wireframe), then select the complete model with a huge a rubber-band box.
Now all faces...
Sorry for reviving this old thread, but this sounds interesting. I havn't played with the 1:1 output issue lately, so may be there might be a solution now.
The problem I had with the 1:1 DXF export setting is (was?) that unfortunately there is a bug with the export setting if you set 1:1 and...
Hi Creigbm,
I know these code lines, you got them from one of my macros from http://swtools.cad.de ;-)
All I can say: no, it is not possible to "customize" the save/open dialog with API calls.
You may want to read MS knowledgebase article 205041 (...
Hi Erik,
> Stefan, will your macro produce different results?
It makes a BMP (uncompressed) of the actual modelview using SolidWorks API calls. With 34" x 34" in 600DPI it results a bitmap 20400x20400 pixels which makes something up to 1.3 GB
You have to print the resulting bitmap...
I think Mr. Pickles is right and you have to save a high quality bitmap which has enough pixels so you get the resolution you want. You can't do this from native SolidWorks, for there is no DPI setting for exporting models to TIF.
But you can use one of my (free) macro. Go to...
If you want to try some "unsupported" ways you may take a look at one of free tools: Preview bitmap at http://swtools.cad.de/vb_preview.htm
A little example with free VB source code (which can be used in VBA also) will do the trick for the drawing preview.
HTH,
Stefan
--...
Yes, this is possible, but you need to write your own Add-In. If you are familiar with VB or C++ it is not that difficult. You have to listen to events fired by SolidWorks (for your example the FileOpenNotify2 event of SldWorks object) and react in your add-in as you want to.
Another way would...
Hi DG,
you can specify a macro which should be executed with SolidWorks (a kind of autostart macro) with a commandline option "-m". Edit your shortcut to look like:
E:\Programme\sw2003\sldworks.exe -m "D:\daten\solidworks\macros\mm_24\Gen3DPointCloud.swp"
This will launch...
BTW, you can edit this file to make some custom symbols. I have a dedicated webpage with some examples at http://solidworks.cad.de/kh_gtol.htm (it's german, but you will understand the examples :-)
Stefan
--
unofficial german SolidWorks helppage
http://solidworks.cad.de
Shareware, freeware...
Hi DG,
these are located in <swinst>\lang\english\gtol.sym (this is language dependant). This is a plain ASCII file which contains several "librarys" (the headings in the dropdownlistbox) and "symbols". Example: the diameter is <MOD-DIAM>, located in the section #MOD in the...
Hi TheTick,
yes, you can write Add-Ins with VB; AFAIK beginning with SolidWorks 2001Plus. To have a brief start go to http://www.solidworks.com/api/index.cfm?template=Downloads and look for "Visual Basic COM DLL addin project with menu items + toolbars". Another useful resource is the...
No problem here, I'm using VB6 professional and can include the MS common dialog controls version 6 .0 without any problem.
But I usually use the Windows API commands to avoid problems with machines, where the common dialog control is not installed (which is rather unusual, but may happen)...
You have to use WithEvents to attach to the notifications fired by SolidWorks.
There is a complete working "Notification monitor" example in VBA at the SolidWorks API helppage. Goto http://www.solidworks.com/api/index.cfm?template=Downloads and find the "VBA Event Monitor"...