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

yang686526 2009-04-13 09:10 AM

【转帖】automatic creation of relations
 
automatic creation of relations
im starting a project for my final year of undergraduate beng and i'm doing a project based around automation of design using genetic algorithms...
i have created api code to create the specified design, based on the geometry in each algorithm (in this case a bell-crank), but part of the code automatically creates a vertical relation with the centre of a circle i have drawn. this causes the tangential relation i later add to over-define the sketch...
my question is simple! is there any way to disable sw automatically creating constraints like this at run-time apart from the ones i create myself?
regards,
andi
originally posted by: andi rodham
my question is simple! is there any way to disable sw automatically creating constraints like this at run-time apart from the ones i create myself?
andi,
look at sldworks::setuserpreferencetoggle and the user preference value swsketchautomaticrelations.
jorn bjarning
cswp
cad & plm consultant
sw2008 sp5 / sw2009 sp2
edited: 10/13/2008 at 08:37 am by jorn bjarning
spot on!
thanks for this,
andi
quick


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