Recent posts

#21
Runtime/AutoLISP / Re: OpenDCL for Autocad 2025
Last post by altver - March 01, 2025, 11:05:05 AM
I wrote the program 10 years ago and it worked in 2024
And now it dont working...
#22
Runtime/AutoLISP / Re: OpenDCL for Autocad 2025
Last post by owenwengerd - March 01, 2025, 10:50:16 AM
There is no new binary for Acad 2025. Make sure you're using the latest development build, then it should work.
#23
Runtime/AutoLISP / OpenDCL for Autocad 2025
Last post by altver - March 01, 2025, 10:33:22 AM
Will OPENDCL work with AUTOCAD 2025
where will I find the file OpenDCL.x64.25.arx for AUTOCAD 2025?
Thank!!!
#24
Runtime/AutoLISP / Re: Sort - Change positions of...
Last post by owenwengerd - February 19, 2025, 10:18:35 AM
I just did a quick test of the Tree sample, and was surprised that it didn't work. I would think this should be possible, but I don't have time at the moment to look into it.
#25
Runtime/AutoLISP / Sort - Change positions of ite...
Last post by Mbk Hk - February 17, 2025, 02:43:41 PM
after several attempts to manually sort the elements of a Tree (Drag N Drop), using "DragOverFromControl" events, I was unable to achieve this.
Now I'm wondering if it's possible to change the position of an item (within the same parent) programmatically?
So if an item "Test2" is the 4th child of "TestParent", change its position to became 7th !

Thanks !

#26
Runtime/AutoLISP / Re: Imagelists Handeling is so...
Last post by owenwengerd - February 12, 2025, 02:59:39 PM
Image lists are designed and optimized for creation at design time, for embedding as a resource inside the .odcl file.
#27
Runtime/AutoLISP / Imagelists Handeling is so slo...
Last post by Mostafa AbdelBaset - February 12, 2025, 05:02:07 AM
Hello.
when using "dcl-ImageList-SetAt" to add multiple images to the control imagelist it takes too long (around 6~7 seconds for 100 images).
while creating an imagelist through a .Net C# code for the same number of images takes no time.
how to work around this problem.and is there a way to pass the control imagelist to a .Net C# code to process adding/removing images from the imagelist using .Net C# code?
i tried to pass the Ename Handels to an C# code but it failed to read the passed Ename.

thank you for Helping
#28
Runtime/AutoLISP / Opendcl Grid Multiple Rows Sel...
Last post by Mostafa AbdelBaset - February 11, 2025, 03:49:04 AM
Hello
does Opendcl Grid support Multiple Rows Selection?
I can't find any option to set the multiple selection to true or false.
it will be very handy if it's has this option.

#29
Runtime/AutoLISP / How to run/call commands in Mo...
Last post by Eddiefromdc - January 16, 2025, 07:17:50 PM
I'm trying to achieve a simple "layer walk" like routine but with a list of selected/desired layers.
It works good for me on Modeless form with a grid control, SelChanged event. Here is a partial code.

(defun c:ChkDwg_ChkDwg_Grid1#OnSelChanged (Row Column / sSelText)
(setq LayName (Dcl_Grid_GetCurSel ChkDwg_ChkDwg_Grid1))
(setq rowinfo (Dcl_Grid_GetRowItems ChkDwg_ChkDwg_Grid1 (car LayName)))
(setq sSelText (nth 0 rowinfo))
(command "layer" "off" "*" "" "")
(command "layer" "on" sSeltext "")
(command "layer" "s" sSelText "")
(command "layer" "off" "*" "" "")
)

But I'm afraid with a Modeless form I might forget to close it before I open another drawing
or if I switch to an open drawing.

So, I think a Modal form works better for me. But I can't make it work. Please look at this code.

(defun c:ChkDwg_ChkDwg_Grid1#OnSelChanged (Row Column / sSelText)
(setq LayName (Dcl_Grid_GetCurSel ChkDwg_ChkDwg_Grid1))
(setq rowinfo (Dcl_Grid_GetRowItems ChkDwg_ChkDwg_Grid1 (car LayName)))
(setq sSelText (nth 0 rowinfo))
(dcl-SendString "-layer off *  ")
(dcl-SendString "-layer on sSeltext *  ")
(dcl-SendString "-layer s sSeltext *  ")
(dcl-SendString "-layer off *  ")
)

Any help would be appreciated.
#30
Runtime/AutoLISP / Problems with OpenDCL in Autoc...
Last post by caduser2025 - January 07, 2025, 09:44:24 AM
I regularly use the Customize tool to prepare drawings for my daily work. Previously, it worked fine, and the dialog box would pop up as expected. However, after returning from the holiday, the customize command no longer works, and the dialog box fails to appear.

When I run the command, the following appears on the command line:
"Command: (load "scale2")
OpenDCL Runtime [9.2.4.1] loaded
_OPENDCL
C:SCALE2-SCX
Command:
Command: scale2-scx
Command:"

I have installed the latest version of OpenDCL, but the issue persists. Any suggestions on how to resolve this?

Thanks!