Author Topic: (SSGET) and 'dynamic input'.  (Read 2426 times)

0 Members and 1 Guest are viewing this topic.

Crank

  • Water Moccasin
  • Posts: 1503
(SSGET) and 'dynamic input'.
« on: May 15, 2005, 07:07:02 AM »
I'm adding the 2006-options to my routines. That means that all commands can be used with 'dynamic input'.
In the past when the user had to select some objects I just put a prompt on the command line what to select before the ssget function.
However, when the command-line is hidden then this prompt should be displayed next to the cursor. Just like with (entsel "\nSelect some objects: ").

Am I missing something, or do you have to make a 'work around' without using (ssget) to make this possible?

This is the problem I ran into:
Code: [Select]

(princ "\nSelect viewport: ")
(setq a (ssget "+.:E:s" '((0 . "VIEWPORT,*POLYLINE,CIRCLE,ELLIPSE"))) )
Vault Professional 2023     +     AEC Collection

Jürg Menzi

  • Swamp Rat
  • Posts: 599
  • Oberegg, Switzerland
(SSGET) and 'dynamic input'.
« Reply #1 on: May 16, 2005, 10:04:21 AM »
Hmmm... works for me

Cheers
A computer's human touch is its unscrupulousness!
MENZI ENGINEERING GmbH
Current A2k16... A2k24 - Start R2.18

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
(SSGET) and 'dynamic input'.
« Reply #2 on: May 16, 2005, 11:42:32 AM »
What happens if you use (prompt
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Crank

  • Water Moccasin
  • Posts: 1503
(SSGET) and 'dynamic input'.
« Reply #3 on: May 16, 2005, 12:02:56 PM »
@  Jürg :
Perhaps my first post wasn't clear enough. I want to be able to display "Select viewport:" (or whatever text) in stead of the common  "Select objects: ". The problem with ssget is that when the commandline is hidden, it's not always clear what to do next.

@ CAB :
PROMPT doesn't make any difference...


It looks like this isn't as easy as I hoped it would be...
Perhaps I should try a different approach: When the commandline is hidden, then display a small pop-up window (If it's possible without the OK button, but with a timer or a trigger that reacts on mouse-movement).
Vault Professional 2023     +     AEC Collection

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
(SSGET) and 'dynamic input'.
« Reply #4 on: May 16, 2005, 12:25:17 PM »
Perhaps you will have to un-hide the command line then re-hide it.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

whdjr

  • Guest
(SSGET) and 'dynamic input'.
« Reply #5 on: May 16, 2005, 01:14:58 PM »
SSGET doesn't allow for you to change the message like ENTSEL does.

Sorry :(

Crank

  • Water Moccasin
  • Posts: 1503
(SSGET) and 'dynamic input'.
« Reply #6 on: May 16, 2005, 02:04:07 PM »
Quote from: CAB
Perhaps you will have to un-hide the command line then re-hide it.

To easy....  :)  But now I'll settle with that. ;)
Vault Professional 2023     +     AEC Collection