Welcome to the forum.
It is not uncommon when going from one CAD program to another that fonts
that aren't in one from the other get changed into tiny little sketched entities.
When this happens you are better off just windowing them, deleting them and then
recreating them in a font that is in that program. I have to believe that the tiny
little sketched pieces are making loading slow. A specially PCB's.
Can you get away with just having the physical outline of the board wihout
all of the text and the traces/pads?
Thanks for the reply, however no - all the detail is required, that is the whole point of going to solidworks, as then the PCB can be rendered. The results are very good, however sometimes the program doesnt like the conversion when doing all the text of each of the components. They are places all over the board and have various rotations, so making a new one in solidworks is not desirable.
Welcome to SolidWorks forums James.
Yes it can be done using a macro. I've made one which is working as required. But the only issues I'm facing is that one need to double click each sketch text to update the result i.e. font type and size. I'll investigating further and will keep you posted.
You might also find this post helpful for your future reference.
Check the attached macro. Follow the steps below before running the macro:
- Unzip the atatched file at known location.
- Open SolidWorks (SW) and go to Tools > Macro > Edit. This will open the browse window.
- Browse to the macro file named Set Sketch Text Format.swp
- This will open macro editor. Go to Tools > References in the macro editor.
- Uncheck the missing libraries and Check the required libraries based on version of SolidWorks (refer attached pic for libraries name).
- Save and close the macro.
- Now open you part and select the sketch.
- Go to Tools > Macro > Run and browse to the updated macro.
- Check the final results.
Please make a backup copy of your file before running the macro.
Thanks very much Deepak
I will take a look at this shortly.
Works great, thank you.
However is it possible to resize on units instead of on points?
I need about 2.5 points, which isnt possible...
Yes this can be done too. Try this one but make sure you fix the reference libraries.
Set Sketch Text Format2.zip 12.5 KB
I use the above macro to change sketch text to a cam font. Works great, thanks.
Now our CNC guys would like to change the font text spacing (gap between letters) from 100% to 140%.
Can that be added or done with another macro? We have a lot of engraved labels on our part models.
Add this line:
swTextFormat.CharSpacingFactor = "1.4" ' Change Spacing factor here
swTextFormat.TypeFaceName = "Arial" ' Change font type here
Thank you. This will save me a ton of "busywork".
Is it possible to create text styles and using a macro, just switching the style?
I created 2 text style with the format I need, and recorded a macro of me switching. It did work well when I was recording, but the macro resulting is pretty much empty...
I ended only finding the objet name of the text I clicked on.