查看单个帖子
旧 2009-04-12, 10:56 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】accessselections failing when the component is a sub-assembly

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