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

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