使用itoa 函数: itoa(integer to ASCII)函数将整数转换为字符串。 lisp (setq num 123) (setq str (itoa num)) (princ str) ; 输出结果:123 在这个例子中,itoa 函数将整数 123 转换为字符串 "123",并将结果存储在变量 str 中,然后通过 princ 函数输出。 使用rtos 函数: rtos(real to string)函数用于...
vl-prin1-to-string (vl-prin1-to-string data) 返回LISP数据的字符串表示形式,就好像它是由prin1函数输出的一样 vl-princ-to-string (vl-princ-to-string data) 返回LISP数据的字符串表示形式,就好像它是由princ函数输出的一样 vl-propagate (vl-propagate 'symbol) 将变量的值复制到所有打开的文档命名空间...
Converts a string into a real number Supported Platforms:Windows and Mac OS Signature (atofstr) str Type:String A string to be converted into a real number. Return Values Type:Real A numeric value. Examples (atof"97.1")97.1(atof"3")3.0(atof"3.9")3.9...
vl-princ-to-string (AutoLISP)Returns the string representation of LISP data as if it were output by the princ function Supported Platforms: Windows, Mac OS, and Web Signature (vl-princ-to-string data) data Type: Integer, Real, String, List, Ename (entity name), T, or nil Any Au...
客服(QQ:1760002012)业务合作 我爱自学网诚聘录课讲师 当前位置:首页>>机械设计>>AutoLisp视频教程>> 3-2 getreal函数和getstring函数 如果视频无法显示,请更换浏览器试试,如:Chrome浏览器、Firefox浏览器、360浏览器、搜狗浏览器、QQ浏览器等,请勿使用IE和Microsoft Edge浏览器!
acet-ms-to-ps从模型空间单位转换实数值到图纸空间单位 acet-ps-to-ms从图纸空间单位转换实数值到模型空间单位 action_tile为某一对话框控件指定一个动作表达式,用户在对话框中选中这个控件时,就会执行该动作表达式 add_list在当前激活的对话框的列表框中增加一个字符串或修改其中的一个字符串 alert显示一个警告框...
AutoLISP语言的基本函数 10.4AutoLISP的基本函数 •本节主要介绍AutoLISP基本函数的功能及其使用方法,基本函数主要包括数值函数、赋值函数、求值函数与禁止求值函数,表处理函数、字符串处理函数、交互式输入函数和屏幕操作函数等,并针对所讲述的函数介绍一些程序设计的基本方法和技巧。• A.学习要求:了解函数的调用...
58 (getreal [ 提示 ] ) 这个函数为用户输入一个实数而暂停 , 并返回这个实数 . 提示 是一个作为提 示符显示 的任选字符串 . 例如 : (setq val (getreal)) (setq val (getreal Scale factor: )) 不能输入另一个 LISP 表达式来响应 GETREAL的请求 . 参见 INITGET. 59 (getstring [ cr ] [ ...
(getreal [提示]请求输入一个实数 6.9(getstring [提示])请求输入一个字符串 6.10(initget [位]字符串)设定下次getxxx函数的有效输入七、几何运算功能函数 7.l(angle 点1 点2)取得两点的角度弧度值 7.2(distance 点1 点2)取得两点的距离 7.3(inters 点1 点2 点3 点 4[模式])取得两条线的交点 7.4(o...
Type:String Message to be displayed to prompt the user. Return Values Type:String The string entered by the user; otherwisenil, if the user pressed Enter without typing a string. If the string is longer than 132 characters,getstringreturns only the first 132 characters of the string. If the...