- UID
- 1
- 积分
- 16111
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-3
- 最后登录
- 1970-1-1
|
发表于 2004-3-12 23:50:26
|
显示全部楼层
Re: 能否告知具体的文档,谢谢
最初由 waspxyz 发布
[B]谢谢 [/B]
和ACAD对象数据库里面AcDbText和AcDbDimension对象的字型样式和标注样式是保存在符号表里面,AcDbMline的样式是保存在命名对象词典里面,修改AcDbMline的样式道理上和文字、标注一样,通过不同的样式来让对象有不同的表现。
你试着在ARX联机帮助里面输入AcDbMline后,就可以看到很多对你有用的文档。
首先:
[php]
AcDbMline::setStyle Function Acad::ErrorStatus
setStyle(
const AcDbObjectId & newStyleId);
newStyleId Input desired MlineStyle objectId
Sets the MLine object to use the MlineStyle specified by newStyleId. This
function cannot be used to change an existing style, except to set it to
NULL by setting newStyleId to kNull. It only sets a new style if a style has
not yet been set on the MLine object. When this function is called, the
style specified by newStyleId must be able to be opened for read or this
setStyle call will fail.
Returns Acad::eOk if new style is successfully set. Returns
Acad::eInvalidInput if the style has already been set on the MLine object.
[/php]
通过上面的方法来设置AcDbMline对象的样式。
添加新的样式,你需要实例一个AcDbMlineStyle对象,初始化后添加到命名对象词典的ACAD_MLINESTYLE记录下面。你也可以先编程看看AcDbDictionary下面的ACAD_MLINESTYLE里面都有些什么,来加深印象,也可利用网站提供过的那个能“窥探”对象数据库秘密的工具找到他们。
实例AcDbMlineStyle对象,利用AcDbMlineStyle类的编辑方法。
[php]
AcDbMlineStyle Class AcDbMlineStyle class objects are used to store the
information about the number, linetypes, and offsets of multi-line line
patterns to be used by AcDbMline entities.
An mline style consists of a series of elements, each of which is a line at a
given offset from an axis (there may or may not be an element on the axis).
AcDbMlineStyle objects are stored in the ACAD_MLINESTYLE dictionary
within the Named Object Dictionary of AcDbDatabase.
[/php] |
|