Recent Posts

Pages: [1] 2 3 ... 10
1
Runtime/AutoLISP / Re: Reload on changing drawing with modeless dialog
« Last post by Peter2 on Today at 12:12:23 AM »
a) Both ways should be working, but (dcl-getprojects) is the current typing; (dcl_getprojects) is the older one.
b) ; error: no function definition: DCL_GETPROJECTS shows that you have not loaded opendcl. Check your installation if it is installed correctly, and call "opendcl" to load the software before you use functions from it
2
Runtime/AutoLISP / Re: Reload on changing drawing with modeless dialog
« Last post by Lube on September 21, 2018, 02:43:15 AM »
Hello Lube.
You have to write the following code in the file ACAD.lsp, so that it is loaded in each drawing.

(defun c:cordoli/cordoli#Onanclajeactivado (/)  (load "cordoli") (c:cordoli) (princ))

(and (zerop (getvar "sdi"))
     (member "CORDOLI" (mapcar 'strcase (dcl_getprojects)))
     (dcl_form_isactive cordoli/cordoli)
     (c:cordoli/cordoli#Onanclajeactivado)
)
Anyway I get this error
; error: no function definition: DCL_GETPROJECTS

I don't know how to fix that.. :S
3
Runtime/AutoLISP / Blockview-clear prevents blockview-displayblock?
« Last post by Peter2 on September 21, 2018, 02:40:26 AM »
I have this code ..
Code: [Select]
dcl-blockview-preload ...
dcl-blockview-clear ..
dcl-blockview-displayblock ...
and see nothing but an empty control.

Removing blockview-clear to
Code: [Select]
dcl-blockview-preload ...
dcl-blockview-displayblock ...
works fine.

Why?
Bug or feature?

Peter
4
Runtime/AutoLISP / Re: Events Not Firing
« Last post by Mike Dennis on September 20, 2018, 05:58:01 AM »
Thanks so much!

I knew I would end up feeling real stupid when someone pointed out my issue.

I was double clicking on the control to bring up the Control Browser window and pasting that code... not realizing I had to enable it in the events.

Thanks again,
Mike
5
Runtime/AutoLISP / Re: Events Not Firing
« Last post by roy_043 on September 20, 2018, 05:23:59 AM »
Events have to be enabled. I don't see any events checked on the Events tab of the Properties panel.
6
Runtime/AutoLISP / Events Not Firing
« Last post by Mike Dennis on September 20, 2018, 04:08:08 AM »
Hi All,

Pretty new to OpenDCL, so I imagine this is something pretty simple that I am not seeing... but for the life of me,

I cannot get any #OnClicked events to fire or the single #OnSelChanged event.

Note: the .sld files will have to be in the BricsCAD search path (findfile).

Thanks for any response,
Mike Dennis

Windows 10
OpenDCL 9.0.1.5
BricsCAD 18.2
7
Runtime/AutoLISP / Re: Reload on changing drawing with modeless dialog
« Last post by Lube on September 11, 2018, 01:08:12 AM »
Thank you mate!

Can I trigger the "OnInitialize" lisp part? Every drawing has a dictionary with items that need to be reloaded.

Thanks for your help :)
8
Studio/Dialog Editor / Re: 4k: How to handle "Picture box"?
« Last post by Peter2 on September 10, 2018, 12:39:18 PM »
Thank you Owen - I will test.
9
Studio/Dialog Editor / Re: Combobox - "Layer" under 4k
« Last post by Peter2 on September 10, 2018, 12:37:07 PM »
Thanks Owen  8)
10
Runtime/AutoLISP / Re: Can't open @AllSamples.lsp
« Last post by khann on September 10, 2018, 04:15:57 AM »
What a kindness  :).
Thank you, Owen
Pages: [1] 2 3 ... 10