最初由 sickman 发布
[B]晓东!请问我自定义了标注样式"USER";请问用哪个函数可以把他设置成默认的函数;还有哪个函数可以得到当前标注样式列表? [/B]
1、设置成默认的函数是什么意思?
2、你可以直接用 AcDbSymbolUtilities::getDimStyleId 获得具体名字的尺寸样式的ID,然后你就可以对这个对象进行操作了。
 - <normalfont>
- AcDbSymbolUtilities::getDimStyleId Function inline Acad::ErrorStatus
- getDimStyleId(
- AcDbObjectId & objId,
- const char * name,
- AcDbDatabase * pDb);
- objId Output AcDbObjectId of found symbol record
- name Input pointer to symbol name to find
- pDb Input pointer to database to access
- Retrieves the AcDbObjectId for a symbol record given name, the name of the symbol, and pDb,
- \a pointer to the database that contains the dimstyle table. If the function succeeds,
- it returns the AcDbObjectId in objId and returns Acad::eOk.
- This function opens the table and looks for the specified record. If successive calls are necessary,
- open the table directly instead of incurring the overhead of repeatedly opening and closing the table
- using this function.
- </normalfont>
|