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

yang686526 2009-04-13 10:21 AM

【转帖】diameter dimension using centerline
 
diameter dimension using centerline
hi,
in solidworks sketch, a diameter dimension can be created using a centerline
(either by placing dimension text to opposite side of centerline or by selecting diameter dimension in dimension properties).
i am trying to do same using api function iadddimension2 for a revolve sketch.
following are the different ways i tried (none of them is working for me).
1. using put_diametric on created displaydimension (this is not working as created dimension is linear, which is getting converted into radial dimension after revolve feature is generated).
2. by selecting dimension text point on opposite side of centerline.
3. creating a diameter dimension using iadddiameterdimension2.
any help regarding this issue is appreciated.
thanks,
regards,
amar


所有的时间均为北京时间。 现在的时间是 03:55 PM.