Author Topic: Spanish Version Acad2008?  (Read 2988 times)

0 Members and 1 Guest are viewing this topic.

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Spanish Version Acad2008?
« on: September 16, 2007, 03:36:15 PM »
I have a routine for Civil3D that seems to be giving a user of the Spanish version an error. The error is with the selection set portion, can anyone that might know why help me out? The line of code is:
Code: [Select]
(setq ss (ssget ":S:E" '((0 . "AECC_COGO_POINT"))))
The error is:
...." error: cadena de modo ssget errónea"

This works fine on my C3D....

LE

  • Guest
Re: Spanish Version Acad2008?
« Reply #1 on: September 16, 2007, 03:43:39 PM »
I have a routine for Civil3D that seems to be giving a user of the Spanish version an error. The error is with the selection set portion, can anyone that might know why help me out? The line of code is:
Code: [Select]
(setq ss (ssget ":S:E" '((0 . "AECC_COGO_POINT"))))
The error is:
...." error: cadena de modo ssget errónea"

This works fine on my C3D....

Does not have the "_"
Code: [Select]
(setq ss (ssget "_:S:E" '((0 . "AECC_COGO_POINT"))))

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Spanish Version Acad2008?
« Reply #2 on: September 16, 2007, 03:51:18 PM »
Heh, thanks Luis. I tried this:
(setq ss (ssget "_:S_:E" '((0 . "AECC_COGO_POINT"))))
and got the error "; error: bad ssget mode string" so I just figured that you couldn't use the underscore with these methods......so why does the :S need it but not the :E?

Thanks again.


LE

  • Guest
Re: Spanish Version Acad2008?
« Reply #3 on: September 16, 2007, 03:58:28 PM »
Heh, thanks Luis. I tried this:
(setq ss (ssget "_:S_:E" '((0 . "AECC_COGO_POINT"))))
and got the error "; error: bad ssget mode string" so I just figured that you couldn't use the underscore with these methods......so why does the :S need it but not the :E?

Thanks again.



Did it work (with what I posted)?

It is red it as a single argument, that's why you just need a single usage of the international support "_" prefix on each argument....
« Last Edit: September 16, 2007, 04:09:16 PM by LE »

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Spanish Version Acad2008?
« Reply #4 on: September 16, 2007, 04:04:46 PM »
Well, it works in mine..... :-) Will have to wait and see what the other user says.

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Spanish Version Acad2008?
« Reply #5 on: September 16, 2007, 04:13:06 PM »
Oh, makes sense, thanks Luis.....never had to work with someone using an international version before.

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: Spanish Version Acad2008?
« Reply #6 on: September 16, 2007, 04:39:55 PM »
Hi all,

It's quite obvious, on a french version, the underscore (_) is needed with W, F, WP, :S but not with X, A, C, CP, I, L, P, :E ...
So that I always put an underscore behind the selection mode, as I do with the command name and options when I have to use the command function.
I think it's a better way on writing LISP, and easier for you, anglo-saxons, who have just to put this underscore than for us, working on non anglo-saxon versions, who have to search English command names and overall options equivalences.
I spend many time "translating" English writen routines just to test them or, most of the time, to reply to the recurent demand on French websites : "I found this LISP on the web, it doesn't work. Why ?"

So, please, internationalize yours routines, underscore yours selection mode, command names and command options
« Last Edit: September 16, 2007, 04:40:59 PM by gile »
Speaking English as a French Frog

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Spanish Version Acad2008?
« Reply #7 on: September 17, 2007, 08:33:27 AM »
Thanks for the info gile.
It's confusing at times because the docs are not clear. I suspect the underscore my be used even though not needed. See the text from the help file.
Quote
C  Crossing  Simular to Window selection
   Selects objects within and crossing an area defined by two points. A crossing
   selection is displayed as dashed or otherwise highlighted to differentiate it
   from window selection. Specifying the corners from right to left creates a
   crossing selection. *** (Specifying the corners from left to right creates a window
   selection.)  (ssget "_C" '(0 0) '(1 1))
 
CP Crossing Polygon
   Selects objects within and crossing a polygon defined by specifying points. The
   polygon can be any shape but cannot cross or touch itself. AutoCAD draws the
   last segment of the polygon so that it is closed at all times. CPolygon is not
   affected by the PICKADD system variable.
   (ssget "_CP" '((1 1)(3 1)(5 2)(2 4)))
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.