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

accessselections() problem
dear all,
i have part document (not assembly), according to the api, i should set the component argument of accessselections( topdoc, component) to 'nothing' when it is a part document. but the problem is that i am writing the code in python and when i set component to 'none' it raises and error, it might be because of not campatibility between 'nothing' in vb and 'none' in python. what should i do instead?
thanks,
artman
try passing an integer 0
if not, use the ctypes function:
c_void_p(none)

edited: 12/27/2008 at 04:47 am by luke malpass
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)