找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 623|回复: 2

[ARX程序]:急,请帮忙,关于查询命令

[复制链接]
发表于 2003-5-22 10:16:11 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
autocad中有查询命令,如massprop,可以查询出实体的体积,那么我如何在arx的程序中将该体积附给一个参数呢??因为我后面要用到该体积进行计算的,只有将查询出的体积付给某参数后,我才能在后面调用

如果不用这种方法,有其他的方法能得到体积并且能在后面调用吗??
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 40个

财富等级: 招财进宝

发表于 2003-5-22 10:34:58 | 显示全部楼层

Re: [ARX程序]:急,请帮忙,关于查询命令

最初由 小李飞刀 发布
[B]autocad中有查询命令,如massprop,可以查询出实体的体积,那么我如何在arx的程序中将该体积附给一个参数呢??因为我后面要用到该体积进行计算的,只有将查询出的体积付给某参数后,我才能在后面调用

如果不?.. [/B]


命令MSSSPROP就是用ARX写出来的啊。你看看


  1. AcDb3dSolid

  2. AcDb3dSolid Query Functions

  3.   AcDb3dSolid::getMassProp

  4. virtual Acad::ErrorStatus
  5. getMassProp(
  6.     double& volume,
  7.     AcGePoint3d& centroid,
  8.     double momInertia[3],
  9.     double prodInertia[3],
  10.     double prinMoments[3],
  11.     AcGeVector3d prinAxes[3],
  12.     double radiiGyration[3],

  13.     AcDbExtents& extents) const;

  14. volume        Returns the volume of the solid
  15. centroid        Returns the centroid of the solid
  16. momInertia        Returns the X, Y, and Z moments of inertia of the solid
  17. prodInertia        Returns the X, Y, and Z products of inertia of the solid
  18. prinMoments        Returns the X, Y, and Z principal moments of the solid
  19. prinAxes        Returns the X, Y, and Z principal axes of the solid
  20. radiiGyration        Returns the X, Y, and Z radii of gyration of the solid

  21. extents        Returns the extents (bounding box) of the solid

  22. This method is used for getting the volume properties of the solid (for
  23. example,
  24. mass properties with density == 1.0). All the properties are evaluated in the WCS.
  25. Returns Acad::eOk if successful.
  26. If there is an error in the ACIS modeler, then
  27. Acad::eGeneralModelingFailure is returned.
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2003-5-26 12:19:45 | 显示全部楼层
我的问题解决了,太谢谢你了
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-9-20 22:39 , Processed in 0.173290 second(s), 35 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表