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

0 Members and 1 Guest are viewing this topic.

GDF

  • Water Moccasin
  • Posts: 2081
Want to Learn OpenDCL
« on: July 09, 2008, 02:23:14 PM »
James

Gary, would you like to learn OpenDCL?  Would you like me to convert this or maybe a simpler project (easier for you to follow) to an OpenDCL form?

Just let me know - I'll be glad to help ...

Yes, thanks. Here is a simple routine to start off with. I have thrown in more code than necessary. Not enough time now to sift through it.
Command name is WEB

    Place the following files in your AutoCAD Support File Search Path:
        ARCH_WEB.vlx compiled routine   
        ARCH_WEB.arch editable text file
        ARCH_WEB.lisp editable text file
        ARCH_WEB.misc editable text file


Thanks again James

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

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Want to Learn OpenDCL
« Reply #1 on: July 09, 2008, 02:43:37 PM »
Well let me have a look . . .
James Buzbee
Windows 8

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #2 on: July 09, 2008, 02:47:47 PM »
Well let me have a look . . .

James

If not the one I posted, any simple routine will do.

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

JohnK

  • Administrator
  • Seagull
  • Posts: 10637
Re: Want to Learn OpenDCL
« Reply #3 on: July 09, 2008, 04:15:27 PM »
Why dont we start off with a Hello world application?

A hello world app that that will report env vars or something?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Want to Learn OpenDCL
« Reply #4 on: July 09, 2008, 04:23:57 PM »
Ok, check this out -

This is the only file needed (ARCH_OPENDCL.lsp) besides the OpenDCL.arx and the URL list files. 

In the zip file there are three files:
ARCH.odcl - this is the file the openDCL editor uses to create and edit forms and controls.  Use the OpenDCL editor on the file.
ARCH.lsp - this file is generated by the OpenDCL editor to create a compiled version of the ARCH.odcl file.  This is read directly into AutoCAD.  The contents of the file are copied into the ARCH_OPENDCL file and loaded when the rest of the lisp is loaded.

ARCH_OPENDCL.lspp is the AutoLISP file that runs the whole show. Let me know if this easy enough to follow . . .

James Buzbee
Windows 8

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #5 on: July 09, 2008, 04:47:27 PM »
James

Command: web
; error: no function definition: DCL_HIDEERRORMSGBOX

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

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Want to Learn OpenDCL
« Reply #6 on: July 09, 2008, 05:02:27 PM »
Sorry - did you download the OpenDCL.arx and put it in AutoCAD's search path?

I'll attach it here . . . what version of UatoCAD are you using?
James Buzbee
Windows 8

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #7 on: July 09, 2008, 05:10:22 PM »
Sorry - did you download the OpenDCL.arx and put it in AutoCAD's search path?

I'll attach it here . . . what version of UatoCAD are you using?

Yes, I'm using OpenDCL17.arx and it is loaded. I'm using 2008 on windows xp

Command: web
; error: no function definition: DCL_PROJECT_IMPORT
Command:
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Want to Learn OpenDCL
« Reply #8 on: July 09, 2008, 05:27:00 PM »
Sorry Gary - it's working here.

When you type in (arx) are you sure OpenDCL.17.arx is in the list??
James Buzbee
Windows 8

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #9 on: July 09, 2008, 05:33:48 PM »
Sorry Gary - it's working here.

When you type in (arx) are you sure OpenDCL.17.arx is in the list??

YEP, it's showing up

I am missing the sub routines called out in your lisp file.

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

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Want to Learn OpenDCL
« Reply #10 on: July 09, 2008, 05:41:32 PM »
That's wiered - they're defined in the OpenDCL.arx.  Any function named "dcl_" is defined in that arx.
James Buzbee
Windows 8

GDF

  • Water Moccasin
  • Posts: 2081
Re: Want to Learn OpenDCL
« Reply #11 on: July 09, 2008, 05:49:46 PM »
I even used your copy of the arx file, and it is loaded. Double check it with appload and (arx)
It's there.
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Want to Learn OpenDCL
« Reply #12 on: July 09, 2008, 08:35:32 PM »
This is why a rarely post stuff . . . sorry.

I guess this will be the last.
James Buzbee
Windows 8

JohnK

  • Administrator
  • Seagull
  • Posts: 10637
Re: Want to Learn OpenDCL
« Reply #13 on: July 10, 2008, 08:29:16 AM »
This is why a rarely post stuff . . . sorry.

I guess this will be the last.
Why wouldn't you post anything anymore? ...I dont understand; you dont like posting cause it didnt work right away? I cant tell you how many apps ive posted that didnt work (maybe a half a thousand).
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Want to Learn OpenDCL
« Reply #14 on: July 10, 2008, 09:05:07 AM »
Yea, programming is such an exact science. One little character out of place & whamo!
It can be very frustrating at times.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.