Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
help fast!!! Popup_list and List_box
« previous
next »
Print
Pages:
1
[
2
]
All
|
Go Down
Author
Topic: help fast!!! Popup_list and List_box (Read 4600 times)
0 Members and 1 Guest are viewing this topic.
PKENEWELL
Bull Frog
Posts: 320
Re: help fast!!! Popup_list and List_box
«
Reply #15 on:
March 31, 2016, 03:38:09 PM »
Attached is a modified version of your code. I have corrected the issues and removed unneeded code.
Logged
"When you are asked if you can do a job, tell 'em, 'Certainly I can!' Then get busy and find out how to do it." - Theodore Roosevelt
amc.dicsac
Newt
Posts: 109
Autocad 2008
WWW
Re: help fast!!! Popup_list and List_box
«
Reply #16 on:
March 31, 2016, 03:40:59 PM »
It would be interesting find out more about (VL-REGISTRY) USED AS THE ADDITION quisera NEVER KNOW ABOUT THE FUNCTION (vlax-ldata-put)
Logged
<a href="http:/http://axprogramlisp.blogspot.pe" class="bbc_link" target="_blank">By Alexander Castro</a>
amc.dicsac
Newt
Posts: 109
Autocad 2008
WWW
Re: help fast!!! Popup_list and List_box
«
Reply #17 on:
April 05, 2016, 07:17:06 PM »
Hi, how are you:
After much achieved what I wanted to thank you for your support, now I have another problem eh added a toggle and boot me this error; error: bad argument type:
fixnump: nil
Could you help me please
https://www.dropbox.com/sh/nzeyisvcy0pgn95/AADEUejcdwFIu7ChiRh_yxFra?dl=0
Logged
<a href="http:/http://axprogramlisp.blogspot.pe" class="bbc_link" target="_blank">By Alexander Castro</a>
PKENEWELL
Bull Frog
Posts: 320
Re: help fast!!! Popup_list and List_box
«
Reply #18 on:
April 08, 2016, 12:22:15 PM »
Hi amc.dicsac,
I think your main problem in the code it that your attempting to do the (unload_dialog) and delete the dcl file while you are still in your "(while" loop. You need to move those outside the while loop. You can leave the dialog loaded if you are re-entering it, and just call (new_dialog) again to re-display it. See the following snippet of your code:
Code - Auto/Visual Lisp:
[Select]
(
setq
ddiag
(
start_dialog
)
)
;; Remove this code and move outside of while loop
;; (unload_dialog dch)
;; (if (and dcl (findfile dcl))
;; (vl-file-delete dcl))
;; (if (< 0 dch)
;; (unload_dialog dch)
;; )
(
princ
)
(
if
(
=
ddiag
1
)
(
prompt
"
\n
Programa Cancelado..."
)
)
(
if
(
=
ddiag
2
)
(
insertax
)
)
;;(if (= ddiag 3) (open_dwg))
)
;; fin de while del toggle
;; Put unload DCL code here
;; ====================
(
unload_dialog
dch
)
(
if
(
and
dcl
(
findfile
dcl
)
)
(
vl-file-delete
dcl
)
)
(
if
(
<
0
dch
)
(
unload_dialog
dch
)
)
;; ===================
(
setvar
"cmdecho"
1
)
(
princ
)
)
Logged
"When you are asked if you can do a job, tell 'em, 'Certainly I can!' Then get busy and find out how to do it." - Theodore Roosevelt
PKENEWELL
Bull Frog
Posts: 320
Re: help fast!!! Popup_list and List_box
«
Reply #19 on:
April 08, 2016, 12:30:33 PM »
P.S. I think you would get allot more help here
if you give proper credit in your comments
to the author of code snippets you borrow from other people here such as Lee Mac (the "NumInc:GetSavePath" function for example).
Logged
"When you are asked if you can do a job, tell 'em, 'Certainly I can!' Then get busy and find out how to do it." - Theodore Roosevelt
PKENEWELL
Bull Frog
Posts: 320
Re: help fast!!! Popup_list and List_box
«
Reply #20 on:
April 08, 2016, 01:18:26 PM »
Attached is another rewrite of your program, just correcting the parts that are broken. I have not touched your code that is still in development. Please see my comments in your code to see what I have done.
Logged
"When you are asked if you can do a job, tell 'em, 'Certainly I can!' Then get busy and find out how to do it." - Theodore Roosevelt
Print
Pages:
1
[
2
]
All
|
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
help fast!!! Popup_list and List_box