查看单个帖子
旧 2007-09-04, 12:15 AM   #5
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 回复: How to get name of face?

Dear Yanhua,

The only way I can find to check all the names is to iterate thru the faces and check for NULL values or empty strings.

Is it possible to use the face IDs in your application? I pasted in some information about the IDs below.

SolidWorks uses the face ID to track the specific faces of imported bodies (for example, IGES imports).

The face ID is a persistent ID that is not saved with the document. Any third party application can change the face ID. The intent is that you will assign an ID value to a particular face so that you can refer to that face within your application. Each ID value must be unique, so it is best to let SolidWorks assign ID value for you when an imported body or surface is created.

Use the Attribute object to store data with a face.


Regards,
Robin Richter
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
huangyhg离线中   回复时引用此帖