well , firstly i have say HI :)
HI ~~ OpenDcl Maters ~ i live in korean , and i work for GIS and i always use AutoCad Map3D 2008
well, i wanna make something tool for my Job..to good workablity..
so ... i found opendcl tool for it. ..it is really good tool :)
anyway , My point of question is ...how can i put string into Listbox...?
here is my routine..
1. make some pallette form in openstudio...
2. add listbox on pallette form
3. check event button to initialize for pallette form
4.. add source into lisp file...like this :
(defun c:Untitled_Form1_OnInitialize (/)
(dcl_Control_SetList Untitled_Form1_ListBox1 (setq laylist (list "a" "b" "c" "d")))
)
..when i start upper command in autocad , i can't see anything in listbox :(
how can i fix it?
please help me OpenDcl masters~:)
Are you using the latest verion of OpenDCL? It is working for me in 5.1.0.3.
same version like you 5.1.0.3
bb:(
In that case, check your event handler name to make sure it matches what is in the .odcl file. Otherwise, post the .odcl and .lsp so I can have a look at it.
Hello,
just a thought:
(defun c:myprog (/ lstLayer c:MyProj_MyForm_OnInitialize)
(dcl_project_load "MyProj")
(defun c:MyProj_MyForm_OnInitialize (/)
(dcl_ListBox_Clear MyProj_MyForm_lst_layer)
(dcl_ListBox_AddList MyProj_MyForm_lst_layer lstLayer)
); c:MyProj_MyForm_OnInitialize
(setq lstLayer (list "a" "b" "c" "d"))
(dcl_form_show MyProj_MyForm)
(princ)
); c:myprog
I do this in this way.
Fred
hello :)
thanks for your comments :)
yesterday, finally i rocked it :) thanks for your advised:)
so.. i update my code :) please comments about my code:)
Seems to be ok!
Fred
thanks you :) FRed :)
Well, What do you work for in Germany?
i work for GIS(Kind of ARc Gis) ..
Mostly I work on townplanning and landscaping projects (combining CAD and GIS).
Fred