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

yang686526 2009-04-13 12:01 PM

【转帖】how to move a solidbody
 
how to move a solidbody
i am developing an addin using c#. i want to move a solidbody in a part file. how can i do so? i tried "insertmovecopybody2". but it doesn't work. i also tried to using "getdefinition". but it cannot return movecopyfeaturedata. could anyone help me?
i know how to move solidbody now. but i only have a feature handler which contains a solidbody. i need get the name of solidbody from the feature handler. i am doing so. if you have any experience with this, please help. thanks
now i have a "ifeature" handler in a part document. this feature contains a "solidbody". how can i get the name of the "solidbody"? i am using c#.
many thanks
i tried to use "ifeature.igetfaces2" to obtain "face2" array, which is shown in the api help file. but the function "ifeature.igetfaces2" (c#) only return "face2" object instead of an array. if i try to obtain this "face2" object, the program crashes.
can anybody help me?
quick


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