几何尺寸与公差论坛

 找回密码
 注册
查看: 829|回复: 0

【转帖】changing font style height macro

[复制链接]
发表于 2009-4-13 09:41:28 | 显示全部楼层 |阅读模式
changing font style & height macro
ok, i had posted this in the drawing forum:
who knows how to automate the ability to change the font style and height automatically for a bunch of drawings?
i saw the macro anna did for changing the font style and i am able to use it. but i also need to adjust the font heights. how would i update this macro or create a new to do the height change?
and it needs to work for sw07.
thanks
kirk l. jess
mechanical designer
icx radar systems
solidworks 2008 sp 4.0 w/routing
solidworks 2009 sp 0.0 w/routing
cswa
windows xp 64 pro
dell precision t3400
intel core2 quad q6600@2.40ghz
4 gig ram
nvidia quadro fx 4600
hi kirk,
attached is a macro that does two things: first it asks you what folder you want to work in as a nice windows gui (which is valuable to know how to do for a lot of things). second it retrieves all of the files in the folder selected. there is a sub in this macro that i commented out that opens each file as view only. you should be able to use this macro with anna's.
now, as far as the height change. each note has a sub type called textformat. textformat has a lot of variables stored in it. what you need to do is loop through each note in each drawing. within that loop get the text format of the note and set it to a temporary textformat variable. then update the height, then set the temp text format to the note you are currently working on.
by the way, isn't it funny that solidworks doesn't allow .swp files to be uploaded to the api forum?
have fun!
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-24 20:01 , Processed in 0.037463 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表