Hi Andre,
Try:
Code:
(defun C:flange (/ intdiameter)
(setq intdiameter (getreal "\nEnter Flange Diameter: "))
(command "-insert" (strcat "flange_" (rtos intdiameter 2 2)) pause "1" "1")
(princ)
)
The (rtos intdiameter 2 2) tells it to return in decimal format and 2 decimal places,
which should match your block name - be careful here - block names should be flange_1.25 and flange_1.50
There is some other error checking needed, like verifying that the block exists (look at tblsearch in the help file) etc. Post back if you need help.