Author Topic: (setq ss (ssget ":S")) does not work in german autocad  (Read 784 times)

0 Members and 1 Guest are viewing this topic.

Lupo76

  • Bull Frog
  • Posts: 343
(setq ss (ssget ":S")) does not work in german autocad
« on: April 18, 2023, 06:45:08 AM »
Hi everyone,
Today I noticed that the following simple line of code doesn't work in German language AutoCAD:

(setq ss (ssget ":S"))

It works well in English and Italian AutoCAD and in BricsCAD (all languages)
This code should allow the user to make a single window selection and immediately return the selection set without allowing any other selections.
Is there something like this in AutoCAD German?  :embarrassed:

Thanks in advance
Lupo76

Lee Mac

  • Seagull
  • Posts: 12928
  • London, England
Re: (setq ss (ssget ":S")) does not work in german autocad
« Reply #1 on: April 18, 2023, 07:11:42 AM »
Try prefixing the mode string with an underscore - similar to AutoCAD commands, this should cause the interpreter to ignore localisations and interpret the input as English, i.e.:

Code - Auto/Visual Lisp: [Select]
  1. (ssget "_:S")

Lupo76

  • Bull Frog
  • Posts: 343
Re: (setq ss (ssget ":S")) does not work in german autocad
« Reply #2 on: April 22, 2023, 09:16:07 AM »
Hi Lee Mac,
thanks for your help!
Problem solved!