几何尺寸与公差论坛------致力于产品几何量公差标准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 get axis pointer at creation time (http://www.dimcax.com/hust/showthread.php?t=4762)

yang686526 2009-04-12 09:17 PM

【转帖】how to get axis pointer at creation time
 
how to get axis pointer at creation time
hi guys,
i want to hold the pointer of axis at the time of its creation here is my code how cann i hold it so that i can rename it
boolstatus = skpoint.select4(true, nothing) //select fist point to dra axis
boolstatus = part.extension.selectbyid2("planealongxaxis", "plane", 0, 0, 0, true, 0, nothing, 0) // plane for vertical axis
boolstatus = part.insertaxis2(true) // here i am drawing axis
but now how can i change it even its not selected at the time of creattion
regards,
use modeldocextension::getlastfeatureadded
thanx roland. goodnight............................................
regards,
quick


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