查看单个帖子
旧 2009-05-06, 04:19 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】is there a way to ping a file = documentation

is there a way to "ping" a file + documentation?
is there a way to "ping" a file + documentation?
hi all:
i'm new to this toolkit and have a quick question.
is there a way to "ping" a file to determine if it's a valid cad file? i don't want to actually load the entire database, just assess whether or not i _might_ be able to open it eventually.
i can do this quickly in perl via swig but i'm loathe to rewrite the functionality if it already exists.
additionally is there more complete api documentation (ie doxygen/uml) available for the toolkit? i'm quickly becoming frustrated with the thin documentation and lack of simple "getting started" style examples and/or tutorial. or maybe i just haven't had enough espresso today ... ?
many thanks in advance;
sga
we don't have any functionality resembling the "ping" that you described (nor does autocad).
our examples/odreadex sample is a good starting point for extracting information out of a dwg/dxf file, and examples/odwriteex contains code for creating various objects and adding them to a database. the developer's guide section in dwgdirect.chm contains information about getting started with dwgdirect.

a way out is to only partially load the drawing objects in memory. refer dwgdirect paging support in the help file.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)