几何尺寸与公差论坛

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

【转帖】update all configurations

[复制链接]
发表于 2009-4-13 15:06:59 | 显示全部楼层 |阅读模式
update all configurations
i wrote a macro to open change the color and close my part files. i am wondering if there is a way to tell it to change the color on all configurations as some of them don't change and some do. anyone know how to make sure they all do?
thanks,
jonah
originally posted by: jonah kunz
i wrote a macro to open change the color and close my part files. i am wondering if there is a way to tell it to change the color on all configurations as some of them don't change and some do. anyone know how to make sure they all do?
jonah,
colors in sw is a subject which will easily require a complete chapter in any sw book... here is a couple of things to check/do:
- is the configuration property "use configuration specific color" enabled?
- is the color controlled from a design table?
- if it is a question about sw not updating the models correctly you will probably need to activate each configuration in the model and change the color for each configuration - as a part of your macro.
jorn bjarning
cswp
cad & plm consultant
sw2008 sp5 / sw2009 sp2
edited: 08/12/2008 at 03:05 am by jorn bjarning
how do you get and set the active configuration ?
i am able to get the collection of config names, just not change anything.
thanks,
jonah
nm, i think i have it... for anyone else looking.
vconfigcount = swpart.getconfigurationcount
for i = 0 to vconfigcount - 1
bconfig = swpart.getconfigurationnames(i)
swpart.showconfiguration (bconfig)
next
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-22 18:46 , Processed in 0.034705 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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