PDA

View Full Version : Keywords with nentsel


irneb
2009-04-16, 07:53 AM
I've tried this at the command line:(initdia 128 "Settings Multiple")
(setq en (nentsel "\nPick object [Settings/Multiple] <Multiple>: "))Now if I right-click a pop-up shows with Settings and Multiple as options (which is exactly what I want). But if I pick either one (or type S or M and space) I get the following at the command line:*Invalid selection*
Expects a single object.:shock: Then nentsel asks the same again. And if I hit Enter or Space it simply returns nil. I've also tried using (initdia "Settings Multiple"), but still get the same results.

Tried the same using entsel, still the same results. Checked the help on initget, which states that both entsel and nentsel do hounor keywords. Is there something wrong? Am I missing something? :?

I'm on Vanilla 2008, english SP1 on XP 32bit.

aaronic_abacus
2009-04-16, 08:29 AM
You need to use INITGET before NENTSEL.

(INITGET "Settings Multiple")

if the value from NENTSEL is NIL, set the default value to the variable.

irneb
2009-04-16, 09:22 AM
Sorry! Big mistake :Oops: :banghead: why did I think initdia ... should have been initget .... thanks!