明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1369|回复: 1

编程实现设置mline的对正和比例

[复制链接]
发表于 2004-9-14 17:11:00 | 显示全部楼层 |阅读模式
系统变量cmlscale,cmljust,在命令行设置后,用addmline 添加多线,并不是设置的参数,怎么回事那?请大侠指点
 楼主| 发表于 2004-9-14 17:58:00 | 显示全部楼层
怎么没有人啊, Public Sub dd() Dim mLineObj As AcadMLine
Dim vertexList(0 To 17) As Double

' Define data for new object
vertexList(0) = 4: vertexList(1) = 7: vertexList(2) = 0
vertexList(3) = 5: vertexList(4) = 7: vertexList(5) = 0
vertexList(6) = 6: vertexList(7) = 7: vertexList(8) = 0
vertexList(9) = 4: vertexList(10) = 6: vertexList(11) = 0
vertexList(12) = 5: vertexList(13) = 6: vertexList(14) = 0
vertexList(15) = 6: vertexList(16) = 6: vertexList(17) = 6 ' Create the line in model space
ThisDrawing.SendCommand "_cmljust 1 " '设置对正方式
ThisDrawing.SendCommand "_cmlscale 4 " '设置比例

Set mLineObj = ThisDrawing.ModelSpace.AddMLine(vertexList) ThisDrawing.Application.ZoomAll

MsgBox "A new MLine has been added to the drawing." End Sub
结果比例是1啊,55555555555555
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-29 08:49 , Processed in 0.137847 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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