明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1460|回复: 6

[讨论] 请问大家怎么用lisp修改页面设置中的参数,谢谢哈

[复制链接]
发表于 2013-3-14 19:46:07 | 显示全部楼层 |阅读模式

如上图所示,我想修改红色区域的参数,应该怎么修改呢。现在关键的是我不知道这些参数(比如红色区域)的名字

本帖子中包含更多资源

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

x
发表于 2013-3-15 10:39:10 | 显示全部楼层
下面是帮助文件里头的:
PlotOrigin Property



Specifies the origin of the UCS, block, layout, or raster image in WCS coordinates.

See Also | Example

Signature

object.PlotOrigin

object

Layout, PlotConfiguration
The objects this property applies to.

PlotOrigin

Variant (two-element array of doubles); read-write
The X and Y values representing the origin relative to the lower-left corner of the media.

Remarks

The origin is offset from the media edge by the paper margin. Use the GetPaperMargins method to query the margins. The origin is given in millimeters.

Changes to this property will not be visible until after a regeneration of the drawing. Use the Regen method to regenerate the drawing.

 楼主| 发表于 2013-3-15 10:59:59 | 显示全部楼层
jdlfjk 发表于 2013-3-15 10:39
下面是帮助文件里头的:
PlotOrigin Property

谢谢楼上的,慢慢研究
 楼主| 发表于 2013-3-15 11:02:50 | 显示全部楼层
jdlfjk 发表于 2013-3-15 10:39
下面是帮助文件里头的:
PlotOrigin Property

MS还是没有看明白怎么修改变量呢,能麻烦再解释一下吗,谢谢哈
发表于 2013-3-15 11:19:46 | 显示全部楼层
直接修改系统变量,大部分设置都保存在系统变量里。
发表于 2013-3-15 11:32:10 | 显示全部楼层
修改当前的打印设置
(vl-load-com)
(setq object (vla-get-activelayout
               (vla-get-activedocument (vlax-get-acad-object))
             )
)
(setq x        1;偏移x
      y        1
)
(setq originalValue
       (vlax-safearray-fill
         (vlax-make-safearray vlax-vbDouble '(0 . 1))
         (list x y)
       )
)
(vla-put-PlotOrigin object originalValue)
 楼主| 发表于 2013-3-15 17:08:38 | 显示全部楼层
jdlfjk 发表于 2013-3-15 11:32
修改当前的打印设置
(vl-load-com)
(setq object (vla-get-activelayout

谢谢哈,我发现我要学的太多了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-8-27 04:15 , Processed in 0.223764 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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