乐筑天下

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

[综合讨论] Shortcut/command for re-select

[复制链接]

2

主题

3

帖子

1

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-7 22:44:49 | 显示全部楼层 |阅读模式
Hello, I am wondering if anyone knows what the command or shortcut is for re-selecting the objects that were most recently selected. I cannot remember it.
(Example, when I have selected a bunch of things, then accidently click off of them or go do something else but then want to select those same things again...)
 
Thank you!
回复

使用道具 举报

14

主题

719

帖子

706

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
70
发表于 2022-7-7 23:11:37 | 显示全部楼层
 
You can use these codes to do selection insted of select command:
  1. (DEFUN C:[color=red][b]S[/b][/color]SET ()(PRINC "\nSELECT A SET OF ENTITY...")(SETQ [color=red][b]S[/b][/color]SET (SSGET)))
After you run this code you need to use "sset" for selecting objects insted of select commandand then continue your work until you wand to do somthing with your selection set, for example you want to do copy them:
Use copy command at the first and then when you want to select object you must use "!sset" as a command at this time and you will see youe previouse selection is selected.
Aftr you use this command "sset" for selecting objects, these selection will be in the AutoCAD memory until you use this command ("sset") insted of select command again for selecting something else or closeing your AutoCad program.
As you see above of This page I posted this routine in another shape before and that means you can 1: add whatever you want to have selection set to this routine and 2: you can add this routine in to your acad.lsp file (it stored in Support Folder under the AutoCad program subfolder) and every time you open your AutoCad and you want to work, you have these commands in your hands.
Hope you can use and work whit that and can be useful.
回复

使用道具 举报

2

主题

3

帖子

1

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-7 23:22:27 | 显示全部楼层
 
 
I would highly recommend that you instead use ACADDOC.lsp
 
 
 
SET cannot be used as a variable name, as it is a LISP function.
 
Also, to add a slight degree of error prevention, consider this:
 
  1. (DEFUN C:SET (/ [color=blue]ss)[/color] (PRINC "\nSELECT A SET OF ENTITY...") (if (SETQ [color=blue]ss[/color] (SSGET [color=seagreen];| Selection Set Filter Here |;[/color]))   (progn   [color=seagreen];; ...Code[/color]   )) (princ)) ;_end defun
回复

使用道具 举报

14

主题

719

帖子

706

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
70
发表于 2022-7-7 23:30:52 | 显示全部楼层
Hi and After many thanks for your reply I just wanted to say I'm useing this routine for about 10 years and it works for me without any error...
And I think the codes are very simple for everyone wants to use it, and I do not recommend to make it busy... maybe it will cause misunderstanding for others.
Anyhow Thanks again.
回复

使用道具 举报

7

主题

708

帖子

701

银币

初来乍到

Rank: 1

铜币
35
发表于 2022-7-7 23:48:00 | 显示全部楼层
Please forgive my confusion... do you mean that you have been using ACAD.lsp, or your code for 10 years?
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-7-2 04:06 , Processed in 0.861590 second(s), 62 queries .

© 2020-2025 乐筑天下

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