几何尺寸与公差论坛

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

【转帖】another traversal question - getactiveconfigurationname

[复制链接]
发表于 2009-4-13 08:52:45 | 显示全部楼层 |阅读模式
another traversal question - getactiveconfigurationname
well, here is my latest hangup. i am again traversing an assembly. while traversing, i would like to pull the "in use" configuration name. i don't care about the name of the configuration that was active when the document was closed. i care about what it is now. i have multiple parts in my assembly called "float". "float" has 2 configurations, 3" and 6". i am only able to pull the configuration name that was active when the document was closed. do i need to open the part and then grab the configuration name? how do you guys deal with this?
here is how i am pulling the info:
(swapp.getactiveconfigurationname(swchildcomp.getpathname))
again, any help is appreciated.
thanks in advance!
tony szuta
cswa, cswp, cswp-smtl
configname = swchildcomp.referencedconfiguration should return the name of of the configuration that that instance of the component is in.
wayne matus
texas engineering systems
answer swchildcomp.referencedconfiguration did the trick.
thanks wayne.
tony szuta
cswa, cswp, cswp-smtl
intel core2 quad (q6600 @ 2.40 ghz)
nvidia quadro fx 4600 sdi
solidworks 2008 sp 4.0 (x32 & x64)
solidworks 2009 sp 2.0 (x32 & x64)
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-24 03:23 , Processed in 0.036221 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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