New Member - Help needed!

Started by cadplan, January 26, 2011, 08:13:55 AM

Previous topic - Next topic

cadplan

I am a new user to OPENDCL, having used Lisp for over 15 years I've finally got fed up with trying to write my own dialog boxes in Lisp and looking for an easier alternative found OPENDCL. Also converted to Bricscad from Autocad recently so glad to see support for this great program.

All has gone well in designing the new dialog box but having difficulty in the next stage and need some pointers if possible. (see attached for design of DB)

The dialog box I am creating is for aligning a survey instrument in a room and asks for positions of up to 4 alignments in the room. The process of each alignment is not important as I have already written the lisp routine for this but it is the workings of the dialog box which I am getting stuck with an not even sure I can get a dialog box to do what I want it to do! Each alignment produces a position in the room and you can have up to 4 alignments. When there are more than two alignments there will be an error between each alignment (again this will be calculated within the lisp routine) which I want to add to the DB when you press calculate. There are tick boxes on each alignment also to either use this position or not in the calculation. Once the user is happy with the error then they press the USE button to start another procees in Autocad.

What I need is some advice on firstly whether this will work and some pointers on what functions to use to hide/unhide the DB (to get each alignment within Autocad), whether you can reload the error into the dialog box from the lisp routine for the user to see and also how I would go about using the tick boxes for using or not using each alignment.

Apologies for the long message and hope I haven't confused anyone who can possibly help!

BazzaCAD

Hi cadplan, welcome to the club.

It sounds like everything you want to do is possible.

First off, have you gone through the "Beginners Tutorial"? http://opendcl.com/wordpress/?page_id=10
This should help get you started.

Also, for the hide, pick a point, & reshow, have a look at this FAQ:
http://www.opendcl.com/forum/index.php?topic=1080.0

For the check boxes, just check it's value, to see if you should excited code for it or not:

Code (autolisp) Select

(if (= 1 (dcl_Control_GetValue Untitled_Form1_CheckBox1))
  (DoStuff)
)


Hope this helps,
Barry
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

owenwengerd

Your .odcl file contains a modeless dialog, but from your description of how you want it to work, it sounds like a modal dialog would be more appropriate. A modeless dialog normally remains open.
Owen Wengerd (Outside The Box) / ManuSoft

cadplan

Many thanks Barry, I had gone through the tutorial but maybe not in as much detail as I should have! I will look at the links you sent and see what I can find.

Gareth