乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 63|回复: 9

[编程交流] [AutoLisp] Can I call Plot com

[复制链接]

2

主题

7

帖子

5

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-6 06:36:33 | 显示全部楼层 |阅读模式
This is my code:
  1. (defun sub-plot (p1 p2) (setvar "cmdecho" 0) (command ".-plot" "y" "" "" "" "m" "" "" "" p1 p2 "" "" "" "" "" "" "" "y" "y") (princ) )
 
I called it from command line:
Command: (sub-plot (getpoint)(getpoint))
Effective plotting area:  411.10 wide by 290.70 high
 
Plotting viewport 2.
 
Command:
 
Can I turn off blue text?
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 06:43:28 | 显示全部楼层
Perhaps... Look into the NOMUTT System Variable.
回复

使用道具 举报

2

主题

7

帖子

5

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-6 06:51:40 | 显示全部楼层
Thanks you very much, but it does not work!
  1. (defun sub-plot (p1 p2)(setvar "cmdecho" 0)(setvar "NOMUTT" 1)(command ".-plot" "y" "" "" "" "m" "" "" "" p1 p2 "" "" "" "" "" "" "" "y" "y")(setvar "NOMUTT" 0)(princ))
 
 
Command: (sub-plot (getpoint)(getpoint))
Effective plotting area:  411.10 wide by 290.70 high
 
Plotting viewport 2.
 
Command:
回复

使用道具 举报

4

主题

2143

帖子

2197

银币

限制会员

铜币
-24
发表于 2022-7-6 07:02:47 | 显示全部楼层
Please use CODE TAGS and edit your posts.
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
438
发表于 2022-7-6 07:06:58 | 显示全部楼层
There are just some prompts you can't suppress. Is it really that much of an issue?
回复

使用道具 举报

2

主题

7

帖子

5

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-6 07:15:51 | 显示全部楼层
 
Sorry, already revised!
回复

使用道具 举报

2

主题

7

帖子

5

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-6 07:22:22 | 显示全部楼层
Actually I am writing a program can be used printing multiple pages automatically. If I call it 10 times (10 pages), the command line is not so nice!
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
438
发表于 2022-7-6 07:24:45 | 显示全部楼层
AFAIK, it cannot be suppressed. It even display with the vla plot command.
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 07:33:08 | 显示全部楼层
The only way I know of suppressing the normal plot feedback at command line, is to either use Autopublish, or step up into .NET API... The latter can be done either in the active session as Kean demonstrates here, or via Core Console (AcCoreMgd.dll) for 2013+ as Greg demonstrates here.
 
HTH
回复

使用道具 举报

2

主题

7

帖子

5

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-6 07:39:25 | 显示全部楼层
wow, it mean impossible for AutoLisp?
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-10 14:48 , Processed in 0.662282 second(s), 72 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表