PDA

View Full Version : LISP and Annotator tapped hole call out


gmatelich
08-25-2005, 07:10 AM
Annotator tapped hole call out has a known defect wherein the thread depth comes through as metric even though everything else is inch.

I was exploring workarounds for this. The correct command is
(SD_THREAD_DIMENSIONS_SETTINGS :THREAD_PROFILE :INCH "<nominal-diameter-text>-<TPI> <Depth2> <length>")

I was trying syntax like
(SD_THREAD_DIMENSIONS_SETTINGS :THREAD_PROFILE :INCH "<nominal-diameter-text>-<TPI> <Depth2> "(/ "<length>" 25.4))
but get an error that <length> is not a number. I’m not really fluent in LISP is there an additional switch I can add, or am I just heading down a dead-end path? In ME Macro language there is a function STR_TO_FLT to convert a string to a number. Is there such a function in OSD Lisp?