查看单个帖子
旧 2009-04-13, 03:06 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】update all configurations

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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)