乐筑天下

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

[综合讨论] SELECT in macro won't sta

[复制链接]
YZ

27

主题

232

帖子

205

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
135
发表于 2022-7-7 01:00:30 | 显示全部楼层
I have learned some more on this.  Still thinking about it a lot.  Not sure if the OP has solved this, but it would make a huge difference if I could get it working.
 
If only put 1 enter after the SELECT command then the selection ends after the macro.  Then I Click PSELECT button and type P and enter.  My theory was that it would repeat the command and just "work".  In the end the 3 enters gave the same result as 1 so I guess I just left it!
 
 
The default button in LT issues the PSELECT command (as opposed to SELECT), but when I type it in command line or use it in a custom macro, LT returns "Unknown Command".  It seems that if the PSELECT command worked in LT then problem would be solved.  But it does not, and as you say, SELECT will not leave it highlighted.
 
A script is an interesting idea.  I have only used scripts to open and plot jobs on mass, usually calling AutoCAD to open and close each time.  I have never called one from within a macro.  Is it likely to be able to leave a selection set "selected" so to manually make changes to its properties before escaping the selection?
回复

使用道具 举报

YZ

27

主题

232

帖子

205

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
135
发表于 2022-7-7 01:09:33 | 显示全部楼层
I am not certain what changed, maybe my code improved, but more likely AutoCAD 2013 allowed this.  In any case, this macro is in LT 2013 and the selection set stays selected after macro is finished, allowing editing on properties of selection directly.
 
  1. ^C^C'-LAYER;LOCK;*;UNLOCK;PT_HEIGHT*,RL_*;;_ai_selall;MOVE;0,0;0,0;SELECT;PREVIOUS;;
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-9 23:11 , Processed in 0.726081 second(s), 65 queries .

© 2020-2025 乐筑天下

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