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

yang686526 2009-04-12 10:11 PM

【转帖】reference mates
 
reference mates
hi,
i am working on a program who makes some automatic actions like create parts, insert parts in assembly, open/close/save/rename the components and the assemblies ...
but i am loosing the possiblity to use the references mates, which is really interesting for me.
i have 2 problems :
- the first one is to create reference mates in a part which is automatically created with a macro. i didn't find any functions linked with this.
- the second is that even if i have a part with reference mates, i have to stop the program and ask the user to select the face where to put the mate. and i still didn't really managed to do that properly.
for now, i am using solidworks 2004.
thanks for answers
there is a function in api for mate reference and it is insertmatereference. i just checked it out and its availability is from solidworks 2005
deepak gupta
sw2007 sp5.0
sw2009 sp2.1
ok thanks for the answer
quick


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