几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】accessselections90 problem (http://www.dimcax.com/hust/showthread.php?t=4990)

yang686526 2009-04-12 10:57 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 06:50 AM.