p7q Posted March 13 Posted March 13 (edited) "When using ssget to select objects in AutoCAD, how can I replace the default 'Select objects:' prompt with my own custom message? I tried using <(prompt "\nPlease select only LINE objects.")> before <(ssget '((0 . "LINE")))> , but my message appears on the previous line, and 'Select objects:' still shows up during selection. I noticed that entsel allows custom messages, but it only selects a single object. What can I do to achieve this?" Edited March 13 by p7q Quote
GLAVCVS Posted March 13 Posted March 13 In any case, 'ssget' will then display 'Select objects' Quote
p7q Posted March 13 Author Posted March 13 (edited) On 3/13/2025 at 10:09 AM, GLAVCVS said: In any case, 'ssget' will then display 'Select objects' Expand Yes. I tried replace prompt with princ. It doesn't give the result I want Edited March 13 by p7q Quote
Saxlle Posted March 13 Posted March 13 Hi @p7q, You can use system variable nomutt. The default value is 0, you need to change it to 1. You can see from one of part from code (it will supress the default "Select objects:" from ssget): ........ (setq old_nomutt (getvar 'nomutt)) (setvar 'nomutt 1) (princ "Select all Text entities:") (setq ss (ssget '((0 . "*TEXT"))) ........ (setvar 'nomutt old_nomutt) (princ) 1 1 Quote
LanloyLisp Posted March 13 Posted March 13 I usually work with dynamic input, and all prompts for ssget appear in the command line if dynamic input is off. Over the years, I'm still waiting for this feature to be added. . 1 Quote
Lee Mac Posted March 13 Posted March 13 https://www.theswamp.org/index.php?topic=51248.msg563608#msg563608 2 1 Quote
p7q Posted March 13 Author Posted March 13 On 3/13/2025 at 10:47 AM, Lee Mac said: https://www.theswamp.org/index.php?topic=51248.msg563608#msg563608 Expand Thanks for answer ."I tried the solution from this link (https://www.theswamp.org/index.php?topic=51248.msg563608#msg563608), but the custom selection message still does not appear next to the mouse cursor. Instead, it only displays in the command line. How can I make my custom selection prompt appear near the mouse cursor while selecting objects? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.