Recent posts

#41
Runtime/AutoLISP / Re: RunTime for Beta BricsCAD ...
Last post by owenwengerd - February 01, 2024, 12:38:18 PM
The current runtime will work again by the second V24.2 beta.
#42
Runtime/AutoLISP / Compile question
Last post by dsm_dude - February 01, 2024, 11:05:43 AM
Is it possible to compile the odcl's so they cannot be tampered with?

If so, how do I go about doing so?
#43
Runtime/AutoLISP / RunTime for Beta BricsCAD V24....
Last post by Emiliano - February 01, 2024, 04:19:47 AM
Hi,
when a routine update compatible with BricsCAD V24.2 will be released.
It seems that OpenDCL.Runtime.9.2.1.5.msi is not compatible.

Thank you.
Best Regards,
Emiliano
#44
Runtime/AutoLISP / dcl-Project-SaveAs issue
Last post by domenicomaria - January 30, 2024, 02:58:02 AM
I create a new odcl project.
and its name is "A"

(dcl-project-load  "A"  t  )
(dcl-form-show    "A" "f" )

and the form is correctly shown
(image "A")

. . .
Then
(dcl-Project-SaveAs "A"  (strcat my-odcl-path "B" ".odcl") nil)

(setq loaded-odcl-project-name (dcl-project-load   "B" t ) )
(princ (strcat "\n" loaded-odcl-project-name) )

When I load "B.odcl" it returns "A" again !

And if I try to show the form contained in "B"
(dcl-form-show    "B" "f" )

it happens what is shown in the attached
odcl runtime error message
#45
Runtime/AutoLISP / Re: BlockView-PreLoad will not...
Last post by glfiedler - January 29, 2024, 03:39:45 PM
Okay I got it working.  I was using (dcl-BlockView-Clear RouterBitsDB/Form1/BlockView1) to clear the view.  I thought that might be a good idea.  The OpenDCL help states "This method resets the control and clears the display."  I had no idea what "resets" was implying but it apparently resets i.e. deletes the PreLoad file reference.  I do not really need to clear the view so by eliminating the "clear" command all is well.
Learn something new every day!
#46
Runtime/AutoLISP / Re: OpenDCL Tutorial
Last post by glfiedler - January 29, 2024, 02:43:14 PM
Thank you for that link.
#47
Runtime/AutoLISP / BlockView-PreLoad will not wor...
Last post by glfiedler - January 29, 2024, 02:34:41 PM
Greetings,
I run AutoCAD 2022 and the latest version of OpenDCL.

I have created a Modal form with listbox and blockview controls.  What I want to do is select from a list of blocks and show the block in the blockview control.  That seems really straight forward.

I have blocks in what I call a library drawing. (setq libdwg "C:\\Users\\jerry\\Drawings\\MISC_BLOCKS\\ROUTER.dwg").  The OpenDCL help (which is very good and usually helps a lot) leads me to believe that (dcl-BlockView-PreLoadDwg RouterBitsDB/Form1/BlockView1 libdwg) will allow me to show the blocks in the blockview control.

It does not work like that and I really need some ideas. The following two cases will show you what happens:

1) With libdwg OPEN and as the ACTIVE drawing and the DCL routine does NOT contain the PreLoad command the form does EXACTLY what I want.  That is, I click on an item in the list and the block is shown.

2) With libdwg CLOSED and another drawing active and the DCL routine DOES contain the PreLoad command the form opens and the listbox works fine but nothing is displayed in the blockview control.

I am obviously doing something wrong and my knowledge of OpenDCL is limited.  Although I have been programming for decades I have only just started to learn OpenDCL.
Reviewing the two tests, above, it would appear that I am calling out the library drawing incorrectly and it is simply defaulting to the active drawing.

Thank you for taking the time to read this post.
Regards,
Jerry
#48
Studio/Dialog Editor / Re: dcl-Grid-setCelltext with ...
Last post by Peter2 - January 29, 2024, 09:59:45 AM
I found it ...

The Grid was totally empty, and I have to use some "ADD" commands to build the table before I can "SET" something ..
#49
Studio/Dialog Editor / dcl-Grid-setCelltext with no r...
Last post by Peter2 - January 29, 2024, 09:49:55 AM
With the open dialogue I tried this code:

Befehl: (dcl-Grid-GetCellStyle xdata_selector/xdata_selector/grid_single 1 1)
-1

Befehl: (dcl-Grid-SetCellStyle xdata_selector/xdata_selector/grid_single 1 1 6)
T

Befehl: (dcl-Grid-GetCellStyle xdata_selector/xdata_selector/grid_single 1 1)
6

Befehl: (dcl-Grid-setCelltext xdata_selector/xdata_selector/grid_single 1 1 "a")
nil

Befehl: (dcl-Grid-getCelltext xdata_selector/xdata_selector/grid_single 1 1)
""

I don't know why I can not set a text to my grid...
Any ideas?
#50
Studio/Dialog Editor / Re: Set Lisp Symbol Names and ...
Last post by Jim Short - January 29, 2024, 07:32:20 AM
Quote from: Fred Tomke on June 12, 2009, 04:45:03 AM
QuoteFred, do you mean there is a function that will return a control based on its name?

Kelie, no, I don't mean this. I mean, when I'm painting my form and I'm coding at the same time then I want to have the VarName in clipboard to add additional (accessing) lines in my source code files. At this time I call "Set Lisp Symbol Names" at first to copy the VarName value from the property's pane into my lisp file. In most of the cases I have the needed dcl_control_...-functions in mind and then I paste the VarName into the VLISP editor. The "nice-to-have" I mean is a command in the context menu that the VarName of the currently selected control or form can be copied as text into clipboard to fasten the coding process and to avoid that the VarName property must be filled before.

I hope it was a little understandable.
Fred

Fred, Can you please explain how this works: At this time I call "Set Lisp Symbol Names"