[ARX.NET]Database的构造函数
public Database( [MarshalAs(UnmanagedType.U1)] bool buildDefaultDrawing, [MarshalAs(UnmanagedType.U1)] bool noDocument ); [MarshalAs(UnmanagedType.U1)] bool buildDefaultDrawing System.Boolean specifying whether or not to build an empty object [MarshalAs(UnmanagedType.U1)] bool noDocument System.Boolean specifying whether or not to associate this database to the current document 参数一:bool buildDefaultDrawing 参数解释:whether or not to build an empty object 是否创建默认的数据库,当这个参数为false的时候,表示创建一个空的数据库。 这个时候数据库中没有任何对象,包括符号表,图层表,块表等默认表都不存在。 通常创建这样数据库的目的是ReadDwgFile,读取dwg文件或者读取dxf文件。其它情况下应该传入true,创建默认数据库,包含默认的初始化对象,包括符号表,图层表,块表,以及一些基本的记录。 参数二:bool noDocument 参数解释:specifying whether or not to associate this database to the current document 是否将数据库关联到当前文档。 常规的在后台操作一些数据库都应该选择false,不关联到当前文档。查看完整版本: [ARX.NET]Database的构造函数
Tags: