超级版主
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
|
How to get name of face?
Date Opened : 9/7/2006 05:46:53 AM
Summary : How to get name of face ? [SR-1-349760789]
Description : How to get name of face?
my code is as follows.
code:
// get the active model doc
LPDISPATCH dModelDoc = SLDWORKS->GetActiveDoc();
// A PartDoc is derived from a ModelDoc
IPARTDOC swPartDoc(dModelDoc);
// ……
// LPDISPATCH dBody
// get a body
// .......
LPDISPATCH dFace;
IBODY swBody(dBody);
dFace = swBody.GetFirstFace();
CString name = swPartDoc.GetEntityName (dFace);
Question: When the above code is compiled, name is NULL, in other words, I can't get the NAME of FACE and complie process is very slow.
Yanhua
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
|