找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1240|回复: 2

[教学] API应用 MLeader样式创建及创建实体

[复制链接]

已领礼包: 1268个

财富等级: 财源广进

发表于 2014-12-27 23:54:10 | 显示全部楼层 |阅读模式

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

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

×
前天建议老大API增加 MLeader 及 MLeaderStyle 两个类,今天就加上了了

1  xdrx_mleader_make
功  能:创建MLeaderM体
调用格式:
(xdrx_mleader_make<起点> <端点> <文字内容> <文字高度> [水平DOGLength] [箭头尺寸]>)

(xdrx_mleader_make<起点> <角度><引线长度> <文字内容> <文字高度> [水平DOGLength] [箭头尺寸]>)
返 回 值:实体名
说    明:

命令: (setq ml (xdrx_mleader_make (getpoint) (getpoint) "abcd\r\nddfafad" (getvar "textsize")))
<图元名: 7ef9b388>
命令: (xdrx_getpropertyvalue ml)
Class AcDbMLeader:
    ├─AlignSpace
    ├─Annotative
    ├─ArrowSize
    ├─ArrowSymbolId
    ├─BitFlags
    ├─BlockColor
    ├─BlockConnectionType
    ├─BlockId
    ├─BlockRotation
    ├─BlockScale
    ├─BreakSize
    ├─ContentType
    ├─DefaultMText
    ├─Description
    ├─DoglegLength
    ├─DrawLeaderOrderType
    ├─ConnectionPoint
    ├─ContentGeomExtents
    ├─Description
    ├─DoglegLength
    ├─DoglegDirection
    ├─DrawLeaderOrderType
    ├─DrawMLeaderOrderType
    ├─EnableAnnotationScale
    ├─EnableDogleg
    ├─EnableFrameText
    ├─EnableLanding
    ├─BlockAttributeValue
    ├─BlockPosition
    ├─FirstVertex
    ├─GeomExtents
    ├─hasContent
    ├─LastVertex
    ├─LeaderIndex
    ├─LeaderIndexes
    ├─LeaderLineIndexes
    ├─LandingGap
    ├─LeaderLineColor
    ├─LeaderLineType
    ├─LeaderLineTypeId
    ├─List
    ├─LeaderLineWeight
    ├─OverwritePropChanged
    ├─OverridedMLeaderStyle
    ├─MLeaderStyle
    ├─MText
    ├─NumLeaderLines
    ├─NumLeaders
    ├─NumVertices
    ├─Plane
    ├─Scale
    ├─TextAlignAlwaysLeft
    ├─TextAlignmentType
    ├─TextAngleType
    ├─ToleranceLocation
    ├─TextAttachmentType
    ├─TextLocation
    ├─TextColor
    ├─TextHeight
    ├─TextStyleId
    ├─Vertex


命令: (xdrx_setpropertyvalue ml)
Class AcDbMLeaderStyle:
  ├─AddFirstVertex (Int Point)
  ├─AddLastVertex (Int Point)
  ├─AddLeader (Int)
  ├─AddLeaderLine (Int Int or Point Int)
  ├─MoveLeader (Vector int [T])
  ├─RecomputeBreakPoints (None)
  ├─RemoveFirstVertex (Int)
  ├─RemoveLastVertex (Int)
  ├─RemoveLeader (Int)
  ├─RemoveLeaderLine (Int)
  ├─RemoveLeaderLineRefAssoc (Int)
  ├─RemoveLastVertex (Int)
  ├─ArrowSize (Double)
  ├─ArrowSymbolId (Ename or NIL or (Int and Ename))
  ├─BlockAttributeValue (Ename STR)
  ├─BlockColor (Int or (R G B))
  ├─BlockConnectionType (Int)
  ├─BlockContentId (Ename)
  ├─setBlockPosition (Point)
  ├─BlockRotation (Double)
  ├─BlockScale (Double or (Double Double Double)
  ├─ContentType (Int)
  ├─DoglegDirection (Int Vector)
  ├─DoglegLength (Double)
  ├─EnableAnnotationScale (T or NIL)
  ├─EnableDogleg (T or NIL)
  ├─EnableFrameText ()
  ├─FirstVertex
  ├─EnableLanding (T or NIL)
  ├─LastVertex
  ├─LandingGap (Double)
  ├─LeaderLineColor (Int or (R G B))
  ├─LeaderLineType (Int)
  ├─LeaderLineTypeId (Ename)
  ├─LeaderLineWeight (Int)
  ├─MLeaderStyle
  ├─MText (Ename)
  ├─Override (Int <T or nil>)
  ├─Plane (GePlane)
  ├─Scale (Double)
  ├─TextAlignmentType (Int)
  ├─TextAngleType (Int)
  ├─TextAttachmentType (Int)
  ├─TextColor (Int or (R G B))
  ├─TextHeight (Double)
  ├─TextStyleId (Ename)
  ├─UpdateLeaderLinePosition (None)
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 8611个

财富等级: 富甲天下

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

使用道具 举报

已领礼包: 1268个

财富等级: 财源广进

 楼主| 发表于 2014-12-28 08:30:47 | 显示全部楼层
liuyj 发表于 2014-12-28 00:01
羡慕啊,坐等更新。

最新2008测试版 在 API交流群下载

新增 xdex_sheet_copyrange 等几个 Excel 文件的区域拷贝函数
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 12:00 , Processed in 0.428916 second(s), 32 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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