几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】drawingdoccreaterelativeview (http://www.dimcax.com/hust/showthread.php?t=4698)

yang686526 2009-04-12 08:43 PM

【转帖】drawingdoccreaterelativeview
 
drawingdoc::createrelativeview
hello,
i am trying to use the drawingdoc::createrelativeview function to get a relative to model view. when i do it in the sw i have to select 2 faces that will be the front and the right orientation in the view. .how do i make it in the macro?
i was trying to record a macro and do it and it uses the selectbyid function and uses the xyz position of the face. how can i make it?
thanks,
does anyone knows how to use this function?
i have 2 faces selected like that:
set ent = facearr(facenum)
ent.select4 false, swseldata
but the function isn't working.
set pview = swdraw.createrelativeview(cmodel.getpathname, 0.14, 0.16, 0, 1)
returns pview = nothing...
what can be the problem?
quick


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