Jump to content

I'm stuck, please help.


jonathann3891

Recommended Posts

I'm stuck and cant find a solution.

 

I'm writing a lisp w/ DCL that will draw tee supports. I've got the list to show up in my DCL, but when you select a steel size, its not setting any values that I've stored.

 

Right now I only have 2 steel sizes in the program to try and simplify it.

 

Can someone please point me in the right direction?

 

Some areas I'm sure aren't correct

 

    (if userclick
(progn
  (setq $COLSIZE$ (fix $COLSIZE$))
  (setq $COLSIZE$ (nth $COLSIZE$ column))
  (setq $BMSIZE$ (fix $BMSIZE$))
  (setq $BMSIZE$ (nth $BMSIZE$ beam))
  )

 

Set Variables

 

 (defun info ()
    
     
     ((= $COLSIZE$ "W5X19")
     (SETQ COLDEPTH 5.13)
     (SETQ COLFLGTHK 0.44)
     (SETQ PLTDEPTH 0.75)
     (SETQ PLTWIDTH 12.0)
    )

 

User input

 

      (set_tile "toselev" "000.000")
     (mode_tile "toselev" 0)
     (action_tile "toselev" "(setq TOSEL $value)")

Tee_Test.LSP

TPOLE.dcl

Link to comment
Share on other sites

but when you select a steel size, its not setting any values that I've stored.

 

Hi,

 

You used the name of text attribute key instead of the popup_list key attribute .

Link to comment
Share on other sites

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...