明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1038|回复: 3

[已解答] 用LISP制作属性快的文字对齐问题

[复制链接]
发表于 2015-5-27 20:58:24 | 显示全部楼层 |阅读模式
本帖最后由 weilu 于 2015-5-31 21:50 编辑

用LISP制作属性快的时候,怎么能确定对齐点,发现群码(cons 71 8)完全没用啊~~~请教诸位!请教G大!
问题解决了,原来要用第二对齐点~~~
"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2015-5-28 10:19:38 | 显示全部楼层
  1. Alignment 属性



  2. 指定属性、属性参照或文字的水平和垂直对齐。  
复制代码
object.Alignment

object

Attribute, AttributeRef, Text
使用该属性的对象。

Alignment

acAlignment 常数; 可读写

acAlignmentLeft

acAlignmentCenter

acAlignmentRight

acAlignmentAligned

acAlignmentMiddle

acAlignmentFit

acAlignmentTopLeft

acAlignmentTopCenter

acAlignmentTopRight

acAlignmentMiddleLeft

acAlignmentMiddleCenter

acAlignmentMiddleRight

acAlignmentBottomLeft

acAlignmentBottomCenter

acAlignmentBottomRight

说明

对齐到 acAlignmentLeft 的文字使用 InsertionPoint 属性来放置文字。

对齐到 acAlignmentAligned 或 acAlignmentFit 的文字同时使用 InsertionPoint 以及 TextAlignmentPoint 属性来放置文字。

对齐到其它任何位置的文字使用 TextAlignmentPoint 属性来放置文字。

发表于 2015-5-28 10:20:19 | 显示全部楼层
  1. (vla-put-Alignment
  2.         Text_Objhect
  3.         acAlignmentCenter
  4. )
复制代码
 楼主| 发表于 2015-5-30 18:29:27 | 显示全部楼层
鱼与熊掌 发表于 2015-5-28 10:20

貌似没有效果呀~~~~~~认死了只能左对齐······[em0]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-5-21 18:35 , Processed in 0.176871 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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