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

yang686526 2009-04-12 08:53 PM

【转帖】face name of extruded body
 
face name of extruded body
hi ,
this is looking to b very complex for me plz help me..............
i draw a circle and then extrude it
if i give the name to each face in which sequence solidworks start giving name to my extruded body because i want to reselect the base of that extruded body to proceed for next operation but how can i know what name solid work gave to that particular face. using api programming .
regards,
aqeel
edited: 02/17/2009 at 03:30 am by aqeel ahmed
aqeel
are you assigning a name to the face when you create the part or are you asking how to find the face after it is created? when you create a part solidworks does not assign names to the faces.
dan miel
yeh dan you r right solid works does not give the name to faces.
after i have created the body i want to give name to each face using api programming but i want to give the name to each face of my own choice.
but i dont know how solidworks give id to each face that's waht i want to know.
because if i know that my created cube's bottom id is 1, top is 2 then i can set the name as top, bottom etc otherwise how can i set top as top.......and bottom as bottom........................
regards,
aqeel
according to the api help for face2::setfaceid, if you want to attach any sort of information to an entity (face, line, edge, etc) you should use attributes.
i'll get you eh steve, if it's the last thing i dooooo!
hi josh this is not my question i am saying after creating a extruded cube how solidworks gives the ids to each face from where it starts numbering. so that i cna give name to specific face.
waiting .................................
quick


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