2009-09-27 13:48 UTC
well, hi everybody !:) i live in korea and i heared ABout OpenDcl from Autdeks International User Group and i used to make some stuff application for my company.
Oneday, i sould changed so many attribute name(kind of block of attributes..). so i made application for my job.(like a image )
but it just worked only one single attributed....it was really so simple routines...
i want to improve this application by Grid box..
when i addstring to first column..it was added up but. when i try addstring to next column..it doesn't works... i mean i couldn't addeup other strings to next columns...
i don't know why it doesn't worked.
my source is like this :
(defun c:laycon_laycon_OnInitialize (/ nRow laycont laylist)
(dcl_Control_SetEventInvoke laycon_laycon_layconsub 1); define dcl controler...to events..
(vl-load-com)
(setq lays (vla-get-layers (vla-get-ActiveDocument (vlax-get-acad-object))))
(vlax-for lay lays
(setq laylist (append laylist (list (vla-get-Name lay))))
)
(setq laycont 0)
(repeat (length laylist)
(setq laygrid (nth laycont laylist))
(dcl_Grid_AddString laycon_laycon_layconsub laygrid));;;<<<<<<<<<<<<<<< this line have some problems... i don't know why i can't added up next columns..
(setq laycont (+ laycont 1)) ;repeat add string to grid....
)
);end add string to grid
thanks for readed my article :)
Oneday, i sould changed so many attribute name(kind of block of attributes..). so i made application for my job.(like a image )
but it just worked only one single attributed....it was really so simple routines...
i want to improve this application by Grid box..
when i addstring to first column..it was added up but. when i try addstring to next column..it doesn't works... i mean i couldn't addeup other strings to next columns...
i don't know why it doesn't worked.
my source is like this :
(defun c:laycon_laycon_OnInitialize (/ nRow laycont laylist)
(dcl_Control_SetEventInvoke laycon_laycon_layconsub 1); define dcl controler...to events..
(vl-load-com)
(setq lays (vla-get-layers (vla-get-ActiveDocument (vlax-get-acad-object))))
(vlax-for lay lays
(setq laylist (append laylist (list (vla-get-Name lay))))
)
(setq laycont 0)
(repeat (length laylist)
(setq laygrid (nth laycont laylist))
(dcl_Grid_AddString laycon_laycon_layconsub laygrid));;;<<<<<<<<<<<<<<< this line have some problems... i don't know why i can't added up next columns..
(setq laycont (+ laycont 1)) ;repeat add string to grid....
)
);end add string to grid
thanks for readed my article :)
