Author Topic: Want to Learn OpenDCL  (Read 8707 times)

0 Members and 1 Guest are viewing this topic.

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #15 on: July 10, 2008, 10:20:50 AM »
This is why a rarely post stuff . . . sorry.

I guess this will be the last.

James

Thanks for trying. It is always hard to understand code from others. I'm sure it is something simple. Maybe you can explain why the arx file can be loaded and the arx's subroutines fail to load. I really do want to learn opendcl and update my older dcl routines.

Gary
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #16 on: July 10, 2008, 10:37:55 AM »
James

I retried again this morning and got this message. Now I'm really confused.

Gary
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #17 on: July 10, 2008, 10:45:44 AM »
James

Since I have opendcl installed, I went to the examples within the opendcl/examples folder.
I forgot I had this.

I tried ListBoxCopyPast.lsp and ListBoxCopyPast.odc routine and it works fine.

I think some of the problem is my lack of understanding of arx type files.

Here is the arx file that I have originally.

Gary
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

FengK

  • Guest
Re: Want to Learn OpenDCL
« Reply #18 on: July 10, 2008, 12:58:32 PM »
To help with the debugging, I tried the zip file that Jame's posted (ARCH.ZIP). It works here. I'm using AutoCAD 2008 and the latest version (5.0.0.19) of OpenDCL.

There is one missing function: KB:SAVEFORMSIZE.

Gary, maybe you can post the link of this thread at http://www.opendcl.com. I don't how often Owen visits this site. There are also other OpenDCL users on that site that may not be a member here.


FengK

  • Guest
Re: Want to Learn OpenDCL
« Reply #19 on: July 10, 2008, 01:00:56 PM »
James

I retried again this morning and got this message. Now I'm really confused.

Gary

Just shooting in the dark, are you using English version AutoCAD? Did you download the English version OpenDCL?
http://downloads.sourceforge.net/opendcl/OpenDCL.Runtime.ENU.5.0.0.19.msi?modtime=1214193808&big_mirror=0

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Want to Learn OpenDCL
« Reply #20 on: July 10, 2008, 02:23:12 PM »
You need the Language Module in the same folder as OpenDCL.a7.arx

Here's the English Module - just copy the folder into the same folder as the arx file.

Kelie - thanks for taking a look.  Here's the save Form size sub:

Code: [Select]
(defun kb:SaveFormSize(formname wd ht / )
(vl-registry-write
 (strcat"HKEY_CURRENT_USER\\Software\\kbTools2009\\" formname)
 "w"
 wd
  )
  (vl-registry-write
 (strcat"HKEY_CURRENT_USER\\Software\\kbTools2009\\" formname)
 "h"
 ht
  )
  (princ)
)

I know OpenDCL savees it's own information, but I need to know the Size of a form before it's Rolled-up.
James Buzbee
Windows 8

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #21 on: July 10, 2008, 03:19:21 PM »
Ok, I reinstalled opendcl studio, and ran the runtime installer also.

Restarted autocad.

Ran your routine.

Still get the same error message.
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

Spike Wilbury

  • Guest
Re: Want to Learn OpenDCL
« Reply #22 on: July 10, 2008, 03:23:35 PM »
Ok, I reinstalled opendcl studio, and ran the runtime installer also.

Restarted autocad.

Ran your routine.

Still get the same error message.

Hola Gary,

Do you have (if they have to be like that) all the opendcl files in the support search path of autocad? - I recall that was needed back on the early objectdcl (chad) days....

Maybe...

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Want to Learn OpenDCL
« Reply #23 on: July 10, 2008, 03:39:07 PM »
Gary - are you running this on a clean instance of AutoCAD?  Meaning there are ne other customizations loaded?  I noticed in the lisp files you sent me you don't localize your variables - there may be something confilcting between my routine and some of yours.  Just a thought.
James Buzbee
Windows 8

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #24 on: July 10, 2008, 03:57:28 PM »
Gary - are you running this on a clean instance of AutoCAD?  Meaning there are ne other customizations loaded?  I noticed in the lisp files you sent me you don't localize your variables - there may be something confilcting between my routine and some of yours.  Just a thought.

Luis

Everything is in the support path.

James

Running plain autocad 2008

Never had this much trouble with doslib or other arx files or installing dll files with a bat file like:
RegSvr32 v:\arch\support\AxAcadStatusBarButton.dll


I had opendcl installed over a year ago and never played with it, but it was up and running, I could run their examples ok.
I reinstalled the newer version today and rebooted and tried one of the new sample routines.
Now I get this error "The OpenDCL runtime module failed to load...."

I'm at a loss.

This is one reason I have been shy of opendcl or objectdcl programs...

Gary
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #25 on: July 17, 2008, 05:14:21 PM »
James

I don't know why, but I had an old arx file in the mix. After deleting the bad file everytrhing is working. It was in
one of my folders in my Support File Search Paths.

I thought I had checked everything...oh well a new day...better results.

Love you modified web routine. WORKS PERFECTLY. I will try the examples in the OpenDCL Studio and look
into your examples. Thanks for taking the time for us old dclers. I know once I get into this I will have questions...
but baby I'm on board now. woo hoo

Gary
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #26 on: July 17, 2008, 05:24:29 PM »
James

Missing this function
KB:GETFORMSIZE

I can't expand the dialog once minimized.

Gary
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #27 on: July 18, 2008, 04:13:40 PM »
James

Missing this function
KB:GETFORMSIZE

I can't expand the dialog once minimized.

Gary


Think I found it:

(defun kb:GetFormSize(formname / wd ht)
(setq wd(vl-registry-read
 (strcat"HKEY_CURRENT_USER\\Software\\kbTools2009\\" formname)
 "w"
 
  )
  ht(vl-registry-read
 (strcat"HKEY_CURRENT_USER\\Software\\kbTools2009\\" formname)
 "h"
 
  ))
  (if (not wd)(setq wd 250))
  (if (not ht)(setq ht 400))
  (list wd ht)
)

Patched the function into the routine.

Only problem I have is how do I expand the dialog when it is a thin line?

Gary

Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #28 on: July 22, 2008, 02:03:43 PM »
James

Missing this function
KB:GETFORMSIZE

I can't expand the dialog once minimized.

Gary




This got it to expand:
c:ARCH_00_Tray_OnClicked


Question, why do I have to enter the command opendcl to load the arx file, and not use appload?
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64