Jump to content

Recommended Posts

Posted

no i wrote the code but the way that you put it i was kind confused i allready have a couple of action tiles in my in/out for example

(action_tile "cancel" "(done_dialog)(setq UserClick nil) ")

This is what you were saying right? Im not knew to lisp but i am kinda fresh to dcl.

  • Replies 30
  • Created
  • Last Reply

Top Posters In This Topic

  • The Buzzard

    17

  • BLOACH85

    12

  • Lee Mac

    2

Top Posters In This Topic

Posted

Action tiles take the information from the dialog place it in a variable to be used someplace within the program. The OK or accept action tile implements all the events to take place based on what input in the DCL was supplied.

Posted

You can have an action tile in some cases for each button or toggle or whatever is in the DCL. Its a way to pass the information on thru the program.

Posted

now do i need this even if the image is just for display?

Posted

Not at all. I was under the impression you were still changing images. If you are changing images, Then yes you will need it.

Posted

Ok see thats what was confusing me. No this is just for display purposes.

Posted

Then you need this in the DCL to have a place to put the image.

 

: image {

key = "im1";

height = 7;

aspect_ratio = 1.5;

color = 0;

allow_accept = true;

}

 

And you will need this in the lisp file to set the image to the tile

in your DCL

 

(setq w (dimx_tile "im1")

h (dimy_tile "im1"))

(start_image "im1")

(slide_image 0 0 w h "Name of your slide image goes here")

(end_image)

 

 

And finally you need the slide

 

Thats it.

Posted

Sorry to interrupt this thread, but just as a tip for creating slide (SLD) images:

 

  • Create a Viewport in any layout and dimension it to a ratio of 2:3, i.e two unit height to 3 unit width. -- I made mine 400x600.

  • Draw your desired image in model space to any dimensions.

  • Go to the layout and zoom extents.

  • Whilst still in the Viewport, type mslide in the command prompt.

  • Select a name and location for your slide image.

This should produce the best possible size for your slide image.

Posted

And another thing - when you use the slide image, you can first fill the background colour of the image tile to a different colour to fit with the slide image.

 

I used something like this:

 

 (defun imgupd (img key)
   (start_image key)
   (fill_image 0 0 (dimx_tile key) (dimy_tile key) -15)
   (slide_image 0 0 (dimx_tile key) (dimy_tile key) img)
   (end_image))

 

Where -15 colour is the dialog box backing colour.

Posted

Thats great way to make slides.

Thank you,

 

Lee MacDialog

Posted

Hey i got My slide to insert but as soon as i press the accept (ok) button the slide goes away. Why is this?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...