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

yang686526 2009-04-13 10:59 AM

【转帖】fully define sketches
 
fully define sketches
hi,
iam trying to develop a macro that will fully define sketches.
iam using
later = sketchmanager.fullydefinesketch ( entitiestofullydefine, userelations, relationstoapply, usedimensions, horizontaldimscheme, horizontaldatumdisp, verticaldimscheme, verticaldatumdisp, horizontaldimplacement, verticaldimplacement)
once the run the macro, the sketch remains underdefined
the only dimensions missing are the ones to the origin
how do i select the origin (both for horizontal and vertical reference) and get all entites dimensioned from it?
krishna
solidworks 2008 sp 3.0
depending on the type of part/feature, you could have the sketch associations set up to utilize the origin through associations with construction lines, no coding required in that case.
matt lorono
solidworks 2007 sp3.1
cad engineer/ecn analyst
co-moderator of


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