- UID
- 5280
- 积分
- 9539
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-5-18
- 最后登录
- 1970-1-1
|
发表于 2003-5-22 10:34:58
|
显示全部楼层
Re: [ARX程序]:急,请帮忙,关于查询命令
最初由 小李飞刀 发布
[B]autocad中有查询命令,如massprop,可以查询出实体的体积,那么我如何在arx的程序中将该体积附给一个参数呢??因为我后面要用到该体积进行计算的,只有将查询出的体积付给某参数后,我才能在后面调用
如果不?.. [/B]
命令MSSSPROP就是用ARX写出来的啊。你看看

- AcDb3dSolid
- AcDb3dSolid Query Functions
- AcDb3dSolid::getMassProp
- virtual Acad::ErrorStatus
- getMassProp(
- double& volume,
- AcGePoint3d& centroid,
- double momInertia[3],
- double prodInertia[3],
- double prinMoments[3],
- AcGeVector3d prinAxes[3],
- double radiiGyration[3],
- AcDbExtents& extents) const;
- volume Returns the volume of the solid
- centroid Returns the centroid of the solid
- momInertia Returns the X, Y, and Z moments of inertia of the solid
- prodInertia Returns the X, Y, and Z products of inertia of the solid
- prinMoments Returns the X, Y, and Z principal moments of the solid
- prinAxes Returns the X, Y, and Z principal axes of the solid
- radiiGyration Returns the X, Y, and Z radii of gyration of the solid
- extents Returns the extents (bounding box) of the solid
- This method is used for getting the volume properties of the solid (for
- example,
- mass properties with density == 1.0). All the properties are evaluated in the WCS.
- Returns Acad::eOk if successful.
- If there is an error in the ACIS modeler, then
- Acad::eGeneralModelingFailure is returned.
|
|