几何尺寸与公差论坛

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

【转帖】accessselections failing when the component is a sub-assembly

[复制链接]
发表于 2009-4-12 22:56:39 | 显示全部楼层 |阅读模式
accessselections failing when the component is a sub-assembly
dear all,
the problem is that i'm using pyhton to convert a vb macro to python. the document is a part file not an assembly. as the solidworks api document says, in accessselections ( topdoc, component ), topdoc is an instance of modeldoc2 and component is set to null when document is a part file. when i want to convert this code to python, i replace 'nothing' with 'none' for the component argument but it raises error and does not accespt none variable.
can any body help me to resolve the error?
thanks in advance,
artman
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 19:42 , Processed in 0.036323 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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