- UID
- 63645
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2003-7-9
- 最后登录
- 1970-1-1
|
发表于 2003-11-24 11:13:03
|
显示全部楼层
好像ARX中有个专门的函数实现此功能的,在全局函数中:
Acad::ErrorStatus
acdbLoadLineTypeFile(
const char* ltname,
const char* fname,
AcDbDatabase* pDb);
ltname Input linetype name string (wild cards may be used)
fname Input path/filename or URL of linetype file to load from (path is optional)
pDb Input pointer to the database to load the linetype(s) into
This function loads the linetype specified by ltname from the file specified by fname and stores it in the database specified by pDb. If pDb is NULL, then the database currently loaded in the AutoCAD editor is used.
The ltname parameter may contain wild card characters (see acutWcMatch() for more information on wild card usage). If wild cards are used, multiple linetypes may be loaded.
If fname is not a URL and does not contain a path, then the AutoCAD library search path will be searched for the file.
Returns Acad::eOk if successful.
Returns Acad::eNullObjectPointer if ltname or fname is NULL.
Returns Acad::eFileSystemErr If the specified file cannot be opened.
Returns Acad::eUndefinedLineType if the linetype name specified by ltname is not found in the file.
Returns Acad::eBadLineTypeName if the file contains a malformed record, or a syntax error is encountered.
Returns an appropriate Internet-specific Acad::ErrorStatus value if a URL is specified and the transfer is not successful. |
|