Jump to content

FILLETRAD not setting


Recommended Posts

What is the problem? FILLETRAD not setting 

(defun c:test()
(setq der(getstring(strcat "\test <" (vl-princ-to-string der)"> : ")))
(setvar "FILLETRAD" der ))

i give "500"

 

then it will come

 

AutoCAD variable setting rejected: "FILLETRAD" "500"

Link to post
Share on other sites
hanhphuc
11 minutes ago, Ajmal said:

What is the problem? FILLETRAD not setting 

AutoCAD variable setting rejected: "FILLETRAD" "500"

 

should be real number not string

(defun c:test (/ r)
  (initget 7)
  (setq r (getreal (strcat "\nTest  <" (rtos (getvar 'filletrad) 2) "> ? :  ")	)
  )
  (setvar 'filletrad r)
  (princ)
)

 

Link to post
Share on other sites
BIGAL

Another just down load multi getvals.lsp from download area.

 

(defun c:test ( )
(if (not AH:getvalsm)(load "Multi Getvals.lsp"))
(setvar 'filletrad (atof  (nth 0 (AH:getvalsm (list "Enter radius " "Current radius " 12 11 (rtos (getvar 'filletrad)))))))
)

image.png.4c904769bf219172c337d3624fcc8658.png

Link to post
Share on other sites
hanhphuc
On 5/6/2020 at 8:02 AM, BIGAL said:

Another just down load multi getvals.lsp from download area.

 


(defun c:test ( )
(if (not AH:getvalsm)(load "Multi Getvals.lsp"))
(setvar 'filletrad (atof  (nth 0 (AH:getvalsm (list "Enter radius " "Current radius " 12 11 (rtos (getvar 'filletrad)))))))
)

 

 

nice, i remember something similar, LISPED how it looks like?

(LISPED "Your string here")

in Briscad it does not exist 

Link to post
Share on other sites
BIGAL

All the multi xxx .lsp work in Briscad there are 4 in "Downloads" Grrr has some nice ones also as library dcl's. Have as many entries as required limited by screen size.

Link to post
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
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...