- UID
- 1
- 积分
- 15891
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-3
- 最后登录
- 1970-1-1
|
发表于 2004-4-16 04:11:17
|
显示全部楼层
Re: [ARX函数]:请问晓东插入函数insert的问题!
最初由 chsqchne 发布
[B]请问晓东插入函数insert中的AcGeMatrix3d& xform参数要怎样初始化为X,Y比例不同呢?我试过用AcGeMatrix3d Mat; Mat(0,0)=1,Mat(1,1)=2,Mat(2,2)=1;可是好像没作用,请帮一下忙!
Acad::ErrorStatus
insert(
c... [/B]
还是一个概念的问题,XYZ不同比例只对INSERT实体起作用,就说明是对 AcDbBlockReference 对象,所以你要到 AcDbBlockReference 的编辑方法里面去找,你说的INSERT是插入外部数据库,是等比例的插入(或者不插入,你自己在当前数据库根据数据生成BLOCK定义),因为插入后的对象是AcDbBLockTableRecord(BLOCK),因此只能是X,Y,Z是单位比例的,从这个BLOCK可以生成能在数据库可视的INSERT,生成的过程中可以设置XYZ不同的比例。你看看下面的方法:
[field]
AcDbBlockReference::setScaleFactors Function virtual Acad::ErrorStatus
setScaleFactors(
const AcGeScale3d& scale);
scale Input an AcGeScale3d object containing the X, Y, and Z scale
factors to be used by the block reference
This function sets the block reference to use the X, Y, and Z scale
factors contained in scale.
The X, Y, and Z scaling of the block reference is applied to the entities in
the referenced block table record relative to their perceived WCS
coordinate axes, which may or may not be the same as the drawing抯
WCS axes.
The X scale factor value is used for DXF group code 41.
The Y scale factor value is used for DXF group code 42.
The Z scale factor value is used for DXF group code 43.
Returns Acad::eOk if successful, or Acad::eInvalidInput if the data
passed in is not acceptable. eInvalidInput will also be returned if any of
the specified scale factors is 0.0.
[/field] |
|