- UID
- 1
- 积分
- 16111
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-3
- 最后登录
- 1970-1-1
|
发表于 2004-4-15 21:34:29
|
显示全部楼层
Re: [讨论]:在objectARX 中有没有与VBA相对应的函数?
最初由 fundoll 发布
[B]在objectARX 中有没有与VBA相对应的函数?
例如: VBA中
Set pl = ThisDrawing.ModelSpace.AddLightWeightPolyline(pt)
在objectARX 中有没有与之相对应的函数? [/B]
任何二次开发工具,最终都是通过ARX来实现的,ARX是最底层接口,所以只能有VBA没有的,不会有ARX没有的。
你可以查看联机帮助,索引里面输入setLineWeight就可以看到了。凡是派生自AcDbEntity 的子类,都可以用。
[field]
AcDbEntity::setLineWeight Function virtual Acad::ErrorStatus
setLineWeight(
AcDb::LineWeight newVal,
Adesk::Boolean doSubents = true);
newVal Input AcDb::LineWeight for the entity
doSubents Input to apply the lineweight change to subentities
This method sets the entity to use lineweight. If the entity owns subentities
and doSubents == Adesk::kTrue, then the line weight change will be
applied to the subentities as well.
Returns Acad::eOk if successful.
Function implementation in derived classes
If this function is overridden and wishes to set the line weight of the entity,
then it must call AcDbEntity::setLineWeight() passing on the lineweight
and doSubents arguments.
It is also possible for this function's implementation to deal directly with any
subentities and pass a doSubents value of Adesk::kFalse to AcDbEntity:: setLineWeight().
If the line weight setting operation is successful, then this function should
return Acad::eOk. If lineweight is not an acceptable value, then this
function should return Acad::eInvalidInput. Any other error return values
are up to the implementor.
[/field] |
|