Recent posts

#21
Runtime/AutoLISP / REMOVE ByLayer and ByBlock ...
Last post by domenicomaria - March 17, 2024, 11:57:28 PM
;         -         -         -         -         -         -         -         -         -         -         -
(defun :DCL-COMBOBOX-COLOR-INIT (prj-name frm-name ctrl-key col-no bylyr-byblk / col-pos 0-clr-nth 256-clr-nth )
   
   (if(not bylyr-byblk)
      (progn
         (if(setq 0-clr-nth   (dcl-ComboBox-FindColor prj-name frm-name ctrl-key 0   ) )
            (dcl-combobox-deleteitem prj-name frm-name ctrl-key 0-clr-nth   )
         )
         (if(setq 256-clr-nth (dcl-ComboBox-FindColor prj-name frm-name ctrl-key 256 ) )
            (dcl-combobox-deleteitem prj-name frm-name ctrl-key 256-clr-nth )
         )
      )
   )
   
   (if(not (setq col-pos (dcl-ComboBox-FindColor prj-name frm-name ctrl-key col-no) ) )
      (progn
         (dcl-ComboBox-AddColor    prj-name frm-name ctrl-key col-no )
         (setq col-pos (dcl-ComboBox-FindColor prj-name frm-name ctrl-key col-no) )
      )
   )
   (dcl-combobox-setcursel prj-name frm-name ctrl-key col-pos )
)


I want REMOVE ByLayer and ByBlock items from the COLOR COMBO BOX

dcl-combobox-deleteitem returns T but doesnt remove anything !

where am I wrong ?

#22
Studio/Dialog Editor / Re: OpenDCL STUDIO Not Opening...
Last post by omergenos - March 15, 2024, 06:05:07 AM
UPDATE

I tried to create a new user on windows and Studio works on this user perfectly. What can be the problem?

UPDATE 2 (SOLUTION)

Hey everyone,

I've been troubleshooting an issue with OpenDCL Studio not working properly on my MSI laptop, and I finally found the culprit: Nahimic2. For those who aren't familiar, Nahimic2 is a sound enhancement software that comes pre-installed on many MSI laptops.

It turns out that whenever Nahimic2 is running in the background, OpenDCL Studio refuses to start up. After performing a clean boot and systematically testing each application, I confirmed that Nahimic2 was indeed causing the conflict. If anyone else is experiencing a similar issue, I recommend trying these steps to see if they help.
#23
Studio/Dialog Editor / OpenDCL STUDIO Not Opening but...
Last post by omergenos - March 15, 2024, 03:50:59 AM
Despite appearing as a running process in the Task Manager, the OpenDCL Studio application does not launch properly, and no window opens. Runtime works successfully through AutoCad. But i need to use the Studio for designing interfaces but Studio doesn't open. 

I have attempted the following troubleshooting steps:

*Restarting my computer.
*Completely uninstalling and reinstalling OpenDCL Studio (i tried both stable and developer versions. 9.1.5.2 and 9.2.1.5)
*Checking for any invisible windows using shortcut keys like "Alt + Tab" or "Windows + D".
*Verifying my screen resolution is suitable for the application.
*Ensuring my graphics drivers are up to date.

Unfortunately, none of these steps have resolved the issue.

Could someone please provide further assistance or guidance on how to resolve this problem? If there are any specific logs or diagnostic information I can provide to assist in troubleshooting, please let me know.
#24
Runtime/AutoLISP / Re: MOVE (drag&drop) an item f...
Last post by domenicomaria - March 15, 2024, 02:28:58 AM
I tried your sample TREE.lsp
also in acad2024
and it is not possible using drag&drop
to MOVE an item from a tree control to another
and in the same tree, from a position to another ...

#25
Runtime/AutoLISP / Re: MOVE (drag&drop) an item f...
Last post by owenwengerd - March 14, 2024, 09:05:56 PM
It is working fine for me in BricsCAD V24. I don't know why it isn't working for you.
#26
Runtime/AutoLISP / Re: MOVE (drag&drop) an item f...
Last post by domenicomaria - March 14, 2024, 01:30:39 AM
Quote from: owenwengerd on March 13, 2024, 09:18:16 PMI believe the Drag N Drop sample shows drag/drop in a single tree control, and also between tree and list controls.

Thanks for the reply.

But with drag&drop I can't MOVE an element from one TREE control to another

And I can't even MOVE an item from one location to another in the same control.
#27
Runtime/AutoLISP / Re: MOVE (drag&drop) an item f...
Last post by owenwengerd - March 13, 2024, 09:18:16 PM
I believe the Drag N Drop sample shows drag/drop in a single tree control, and also between tree and list controls.
#28
Runtime/AutoLISP / Re: MOVE (drag&drop) an item f...
Last post by domenicomaria - March 12, 2024, 11:30:23 PM
and I need also to move an item in the same tree control from a position to another (always with drag&drop)

I am trying to use
dragoverfromcontrol and dcl-Tree-AddSibling
without success

I would need an example

#29
Runtime/AutoLISP / MOVE (drag&drop) an item from ...
Last post by domenicomaria - March 12, 2024, 09:15:26 PM
If I drag an item from the tree-00  control to the tree-01 control,
the source item is removed from the source tree
but nothing happens in the target tree ...
...

what is the trick to MOVE an item from a tree to another one ?

i am not able to know what is the item of the target tree where the source item is dropped ...

what have I to do ?
#30
Runtime/AutoLISP / Re: OpenDCL AutoCad LT 2024
Last post by Christina - March 04, 2024, 10:10:05 PM
Thank you for the explanation Joseph !