Recent posts

#41
Source Code / Re: Slow load of project to au...
Last post by owenwengerd - September 26, 2024, 11:14:35 AM
There were some reason performance and resource leak fixes, so I guess those fixes resolved the problem you encountered.
#42
Source Code / Re: Slow load of project to au...
Last post by Mostafa AbdelBaset - September 26, 2024, 03:32:39 AM
i use autocad 2022 and 2023 and both face the same problem.
the problem solved when i updated from opendcl version 9.2.03 to 9.2.3.3
i didn't update to the 9.2.4.1 version as i have no admin rights on my PC to install it right now.may be i will check later when i update to this version

this is the function i used to calculate the load project/show form time


(defun c:test ( / tmlst)
(defun timer ( / rTimeDiff)
; Check to see if the function was previously called
(if (= *g-timer-start-time* nil)
(progn
; Stores the current milliseconds
(setq *g-timer-start-time* (getvar "MILLISECS"))
(princ)
)
(progn
; Calculates and returns the time difference
(setq rTimeDiff (- (getvar "MILLISECS") *g-timer-start-time*)
*g-timer-start-time* nil)
rTimeDiff
)
)
)

(repeat 100
(timer)
(dcl_Project_Load "findreplace" T)
(dcl_Form_Show findreplace_findreplace)
(setq tmlst (cons (timer) tmlst))
(dcl-Form-Close findreplace/findreplace 1)
(command "_.delay" 200) ; take a break time after each load
)

tmlst
)

#43
Source Code / Re: Slow load of project to au...
Last post by owenwengerd - September 25, 2024, 06:43:10 PM
Are you testing with the latest development build of OpenDCL Runtime? Which version of Acad? Can you attach the form and code you used to obtain these results?
#44
Source Code / Slow load of project to autoca...
Last post by Mostafa AbdelBaset - September 25, 2024, 12:57:03 PM
Hello
i have a consideration about the load & show form function.
when i load a project multiple times to autocad it gets slower and slower each time i load the project and show the form.
i have calculated the time for repeating load project/show form for 100 times and the result was as follow in milli seconds

(156 172 172 187 188 203 204 203 187 203 219 203 219 218 250 219 235 235 250 250 250 250 265 281 265 281 281 282 281 281 297 297 281 312 328 328 313 329 344 328 344 344 344 360 375 360 375 375 375 375 390 390 391 390 391 406 391 406 422 422 422 437 437 438 438 437 438 453 454 484 468 484 468 484 468 484 485 500 500 500 516 516 531 516 531 516 532 546 547 547 547 563 562 578 578 562 578 578 594 609)

as shown the more times i load the project/show the form the slower it will be.
is there any solution to make the load process faster?

thank for your help in advance

[/size]
#45
Deployment / Re: OpenDCL for GstarCAD 2025
Last post by Marcin - September 25, 2024, 02:06:31 AM
Great, thanks
#46
Deployment / Re: OpenDCL for GstarCAD 2025
Last post by owenwengerd - September 20, 2024, 08:25:17 AM
Thanks Marcin, I'll put GstarCAD 2025 support on the to-do list for the next update.
#47
Runtime/AutoLISP / Re: Scrollable content in pale...
Last post by odcl_civilizer - September 20, 2024, 08:11:36 AM
Quote from: TCNTRM on September 20, 2024, 04:29:13 AMAsked the same question, I'm pretty sure I was told it can't be done

Ah really? Thought it would be possible especially considering grid exists and has scroll functionality.
I tried doing something using Control-GetPos, Control-SetPos and Scrollbar but it's very junky and can't set negative positions so I have to hide the controls that reach the top.
#48
Deployment / OpenDCL for GstarCAD 2025
Last post by Marcin - September 20, 2024, 06:01:14 AM
Hello Owen.

There's new version of Gstarcad: 2025
Here's link for Installer:
https://filebase.neofame.com.my/GstarCAD/2025_for_Windows/240628/GstarCAD2025EN_x64_240701.exe
and for SDK:
https://filebase.neofame.com.my/GstarCAD/2025_for_Windows/240628/GstarCAD2025_grxsdk_240701.zip

I hope this help support OpendDCL for Gstarcad 2025

Regards
Marcin
#49
Runtime/AutoLISP / Re: Scrollable content in pale...
Last post by TCNTRM - September 20, 2024, 04:29:13 AM
Quote from: odcl_civilizer on September 19, 2024, 03:50:41 AMThis is my first time posting here so I hope this is the right place.

I have a palette and wanted to ask how/if I can make the content in it scrollable.
I searched this forum and google but didn't find anything although it seems like something very basic. I'm new to this and I might be missing the elephant in the room, so any help is appreciated!

Asked the same question, I'm pretty sure I was told it can't be done
#50
Runtime/AutoLISP / Scrollable content in palette
Last post by odcl_civilizer - September 19, 2024, 03:50:41 AM
This is my first time posting here so I hope this is the right place.

I have a palette and wanted to ask how/if I can make the content in it scrollable.
I searched this forum and google but didn't find anything although it seems like something very basic. I'm new to this and I might be missing the elephant in the room, so any help is appreciated!