ARX AcDb globle 函数

ARX AcDb globle 函数

1从dwg得到预览

bool
acdbDisplayPreviewFromDwg(
const ACHAR * pszDwgfilename,
void* pPreviewWnd,
const Adesk::UInt32* pBgColor = NULL);

2从dxf得到预览

Acad::ErrorStatus
 acdbGetThumbnailBitmapFromDxfFile(
const ACHAR* filename,
void*& pBitmap);

3根据给定的handle来查找实体,并将当前的实体名存入enters中

int
acdbHandEnt(
const char * handle,
ads_name entres);

4打开AcDbEntity派生的数据库驻留对象(即有图形)
Acad::ErrorStatus

acdbOpenAcDbEntity(

AcDbEntity*& pEnt,

AcDbObjectId id,

AcDb::OpenMode mode,

bool openErasedEntity = false);

5 打开不是从AcDbEntity派生的数据库驻留对象(即没有图形)

Acad::ErrorStatus

acdbOpenAcDbObject(

AcDbObject*& pObj,

AcDbObjectId id,

AcDb::OpenMode mode,

bool openErasedObject = false);

6打开任何数据库驻留对象
inline Acad::ErrorStatus

acdbOpenObject(

AcDbObject *& pObj,

AcDbObjectId id,

AcDb::OpenMode mode);

7保存文件为2000,R13,R14
Acad::ErrorStatus

acdbSaveAs2000(

AcDbDatabase* pDb,

const ACHAR* fileName);

8 扫面符号表中的下一个记录或第一个记录(找字典中的下一个指针acdbDictNext())
struct resbuf *

acdbTblSearch(

const char * tblname,

const char * sym,

int setnext);

9 对数据库中的实体的处理
int

acdbEntDel(

const ads_name ent);


struct resbuf *

acdbEntGet(

const ads_name ent);

int

acdbEntLast(

ads_name result);

int

acdbEntNext(

const ads_name ent,

ads_name result);

int

acdbEntUpd(

const ads_name ent);

int

acdbEntMake(

const struct resbuf * ent);

int

acdbEntMod(

const struct resbuf * ent);

10 由id得到ads-name

Acad::ErrorStatus

acdbGetAdsName(

ads_name& objName,

AcDbObjectId objId);

11 标注的处理

bool

acdbGetDimLineLinetype(

AcDbObject * pObj,

AcDbObjectId& oidValue); 等

12 由名字的到id

Acad::ErrorStatus

acdbGetObjectId(

AcDbObjectId& objId,

const ads_name objName);


13由名字得到handle

acdbHandEnt(

const char * handle,

ads_name entres);


 

你可能感兴趣的:(ARX AcDb globle 函数)