Jump to content

Recommended Posts

Posted (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 by p7q
Posted

Hi

Replace 'prompt' with 'princ'

Posted

In any case, 'ssget' will then display 'Select objects'

Posted (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 by p7q
Posted

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)

 

  • Like 1
  • Agree 1
Posted

image.png.2e2f75f727a7418abc26a4e29c8a1703.png
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. ðŸ˜…

  • Like 1
Posted
  On 3/13/2025 at 10:47 AM, Lee Mac said:
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?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...