几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】accessselections failing when the component is a sub-assembly (http://www.dimcax.com/hust/showthread.php?t=4989)

yang686526 2009-04-12 10:56 PM

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


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