Bonjour,
I have this code (see below) and use the (saisie dynamique) "dynamic input"
Dynprompt = 1
Dynmode = 3
(initget 1 "A S")
(setq ch_vasp (getkword "\nVanne : [Avec/Sans (cas std)]<Sans (cas std)> ? "))
With AutoCAD 2009 I can validate the default value with "Enter"
With AutoCAD 2012 I can't !
I get (Choix de l'option incorrect) Option choice Incorrect
Any idea ?
Thanks in advance.
Yves
initget 1 prevents the user from responding to the request by entering only ENTER.
Not sure how you were able to suppress that with 2009, but you shouldnt be able to
Your argument is correct without dynamic input.
With dynamic input on AutoCAD 2009, I can valide the default value.
Why not with AutoCAD 2012 ?
Is there one new sytem variable to manage this ?
Regards,
Yves
Guess you're right. right now i'm using 2004 version my 09 cad bogged down last night. cant test on 2009 much more 2012.
I cant be of any help on that for now YVES 🙂
in any case, did you try removing 1 from your initrget statement?
If I remove 1 to iniget and if the value of Dynprompt is 0
and validate the question by return
I obtain nil in the variable.
So I can't accept this solution.
Sorry.
If you DO remove initget 1
you would need to add to your condition statement
(cond
((null ch_vasp)(do this))
((eq "A" ch_vasp)(do this))
((eq "S" ch_vasp)(do this))
)
and its a suggestion not necesarily a solution.
or this
(initget "A S") (setq ch_vasp (getkword "\nVanne : [Avec/Sans (cas std)]<Sans (cas std)> ? ")) (if (not ch_vasp) (setq ch_vasp "A")
Asfor the new sytem variable and why it wont work in 2012. my anser IDK.
Hope this helps anyway Yves
My question is "why it doesn't work on AutoCAD 2012 and works on AutoCAD 2009 ?"
Regards,
Yves
I understand and know your solution but ... it's not my choice for this problem.
Sorry
@YvesLEHURT8573 wrote:I understand and know your solution but ... it's not my choice for this problem.
Sorry
No worries Yves. i would want to know the anser to that question myself even before i start usign 2012
Keep us posted if you find the answer
🙂