TheSwamp

Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: Atwist on May 16, 2011, 11:29:24 AM

Title: Sample off a ODCL
Post by: Atwist on May 16, 2011, 11:29:24 AM
Hello all,

Have anyone a sample of a simple lisp whit a ODCL, so I can look how to build en start this. :roll:
Title: Re: Sample off a ODCL
Post by: Matt__W on May 16, 2011, 11:31:01 AM
Hello all,

Have anyone a sample of a simple lisp whit a ODCL, so I can look how to build en start this. :roll:
The ODCL download has a dozen or so samples.
Title: Re: Sample off a ODCL
Post by: MP on May 16, 2011, 12:48:49 PM
The ODCL download has a dozen or so samples.

this
Title: Re: Sample off a ODCL
Post by: Matt__W on May 16, 2011, 01:12:18 PM
The ODCL download has a dozen or so samples.

this
This what?
Title: Re: Sample off a ODCL
Post by: MP on May 16, 2011, 01:22:24 PM
This what?

that
 |
 |
 ▼


The ODCL download has a dozen or so samples.
Title: Re: Sample off a ODCL
Post by: Atwist on May 16, 2011, 01:29:16 PM
Thanks Matt,

I've found
but I'm looking for a code with a button to start a prog.
Button1 load "cl.lsp" and start "cl"
BTW I'm new to opendcl
Title: Re: Sample off a ODCL
Post by: Matt__W on May 16, 2011, 01:42:25 PM
Thanks Matt,

I've found
but I'm looking for a code with a button to start a prog.
Button1 load "cl.lsp" and start "cl"
BTW I'm new to opendcl
Just put this behind a button:  (load"cl.lsp");cl;

To break it down...

(load"cl.lsp")  -- Loads the Autolisp program CL.LSP
;                 -- Return (similar to pressing RETURN on the keyboard)
cl                -- Start your LSP program (similar to typing LINE to start the line command)
;                 -- Another return to execute the command
Title: Re: Sample off a ODCL
Post by: alanjt on May 16, 2011, 01:46:25 PM
This what?

that
 |
 |
 ▼


The ODCL download has a dozen or so samples.
Who's on first?
Title: Re: Sample off a ODCL
Post by: MP on May 16, 2011, 01:48:02 PM
Who's on first?

atwist
Title: Re: Sample off a ODCL
Post by: alanjt on May 16, 2011, 01:48:32 PM
Who's on first?

atwist
a twist of what?
Title: Re: Sample off a ODCL
Post by: Matt__W on May 16, 2011, 01:48:48 PM
Who's on first?

atwist
a twist of what?
Fate?   :-P
Title: Re: Sample off a ODCL
Post by: MP on May 16, 2011, 01:48:55 PM
fate
Title: Re: Sample off a ODCL
Post by: MP on May 16, 2011, 01:50:13 PM
late by 7 seconds

that's wut she said

(http://www.theswamp.org/screens/mp/oh.gif)
Title: Re: Sample off a ODCL
Post by: alanjt on May 16, 2011, 01:51:36 PM
bazinga!
Title: Re: Sample off a ODCL
Post by: MP on May 16, 2011, 01:52:04 PM
lol, avatar approved
Title: Re: Sample off a ODCL
Post by: alanjt on May 16, 2011, 01:53:13 PM
lol, avatar approved
:-D
Title: Re: Sample off a ODCL
Post by: Atwist on May 16, 2011, 01:54:01 PM
Thanks Matt,

But this code is for a dcl not for opendcl,or I'm wrong.
I have a make a textbutton
Code: [Select]
(defun c:start_Start_Tekstlayer25_OnClicked (/)
  (dcl_MessageBox "To Do: code must be added to event handler\r\nc:start_Start_Tekstlayer25_OnClicked" "To do")
)
But where put I the code to start the lisp.
I'm do not find in the samples of opendcl.
Title: Re: Sample off a ODCL
Post by: MP on May 16, 2011, 01:55:12 PM
But where put I the code to start the lisp.

start here (http://www.opendcl.com/tutorials/OpenDCL_Tutorial.zip)
Title: Re: Sample off a ODCL
Post by: Atwist on May 16, 2011, 02:01:06 PM
Thanks MP,

But this is not what I'm looking for.
I'm need a simple answere on my Question, or is that a problem
Title: Re: Sample off a ODCL
Post by: Matt__W on May 16, 2011, 02:06:35 PM
Start with this for creating a custom toolbar.

http://www.ellenfinkelstein.com/AutoCAD_tips_create_custom_toolbar_cui.html
Title: Re: Sample off a ODCL
Post by: MP on May 16, 2011, 02:07:22 PM
Thanks MP,

But this is not what I'm looking for.
I'm need a simple answere on my Question, or is that a problem

Unless my crystal ball is in need of a battery upgrade you do not have a simple question. You currently have one seemingly simple question based upon no experience with OpenDCL, but as you foray into OpenDCL dev't you will have many many more questions. Based on that assumption you would highly benefit from working thru the tutorial a couple times, writing a couple modest applications based on the tutorial samples and then come back and ask questions to cement you knowledge. If however you are not capable of working thru tutorials no amount of serial question posting herein will help you. Candidly yours, MP.
Title: Re: Sample off a ODCL
Post by: Matt__W on May 16, 2011, 02:09:37 PM
Thanks MP,

But this is not what I'm looking for.
I'm need a simple answere on my Question, or is that a problem

Unless my crystal ball is in need of a battery upgrade you do not have a simple question. You currently have one seemingly simple question based upon no experience with OpenDCL, but as you  foray into OpenDCL dev't you will have many many more questions. Based on that assumption you would highly benefit from working thru the tutorial a couple times, writing a couple modest applications based on the tutorial samples and then come back and ask questions to cement you knowledge. If however you are not capable of working thru tutorials no amount of serial question posting herein will help you. Candidly yours, MP.

HIP! HIP!  FORAY!!!
HIP! HIP!  FORAY!!!
Title: Re: Sample off a ODCL
Post by: Atwist on May 16, 2011, 02:18:06 PM
I thought I was sitting in a forum opendcl.  :ugly:
But it is a forum for fun people :cry: :cry: :cry:
Title: Re: Sample off a ODCL
Post by: MP on May 16, 2011, 02:21:42 PM
Brother I'm just trying to help you get to your objective the best and fastest way possible, sorry you don't interpret it that way.
Title: Re: Sample off a ODCL
Post by: Matt__W on May 16, 2011, 02:22:44 PM
And it kinda sounds like you need help creating a custom toolbar so I provided a link for that.  Baby steps... baby steps.