CAD命令行输入:vlide,打开LISP编辑器,新建一个文件,输入代码:
(alert “hellow world!”)
工具栏点击加载,返回CAD窗口,弹出提示框”hellow world!”
计算一个数的平方:
(defun c:test()
(setq a (getint "请输入一个数字:"))
(setq b (* a a ))
(print b)
(princ)
)
加载后,CAD命令行输入:test,按照提示进行操作,输入任意一个数字,比如7,按回车,命令行出现49。
CAD命令行输入:vlide,打开LISP编辑器,新建一个文件,输入代码:
(alert “hellow world!”)
工具栏点击加载,返回CAD窗口,弹出提示框”hellow world!”
计算一个数的平方:
(defun c:test()
(setq a (getint "请输入一个数字:"))
(setq b (* a a ))
(print b)
(princ)
)
加载后,CAD命令行输入:test,按照提示进行操作,输入任意一个数字,比如7,按回车,命令行出现49。
免责声明:文章转载自《AutoCAD LISP :Hellow World!》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇git拉代码,IntelliJ idea报错,cannot load module xxxxxJS实现 Tab栏切换案例下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=
a.c #include<stdio.h>#include "a.h" intmain() { printf("hello world "); printf("A= %d ",A); test_fun(); return 0; } a.h #define A 1 b.c #include <st...
//test{int i;int width = 32;CString tmp;CString str0; for(i=0; i<len; i++){//tmp.Format(L"%6.6X", i);tmp.Format(L"%2.2X ", (unsigned char)pData[i]);str0+=tmp;} str0 = str0;TRAC...
一、查询表大小,块多少语句 Select SEGMENT_Name,BYTES,BLOCKS,Extents From dba_segments Where segment_name In('BAI_NEW_SESSION_HISTORY2') order by segment_name; (2)查表空间 Select Tablespace_Name,...
这里, 简单的记录一下lua中闭包的知识和C闭包调用 前提知识: 在lua api小记2中已经分析了lua中值的结构, 是一个 TValue{value, tt}组合, 如果有疑问, 可以去看一下 一些重要的数据结构 lua中有两种闭包, c闭包和lua闭包 两种闭包的公共部分: #define ClosureHeader C...
1、首先,compare需要下载安转包,如果你有的话就可以直接使用这个扩展包 消息队列扩展 composer require topthink/think-queue 在extra文件夹中的queue.php进行配置 return [ 'connector' => 'database', 'table' => 'j...
1.部署 本章节主要讲述如何部署ZooKeeper,包括以下三部分的内容: 系统环境 集群模式的配置 单机模式的配置 系统环境和集群模式配置这两节内容大体讲述了如何部署一个能够用于生产环境的ZK集群。如果仅仅是想在单机上将ZK运行起来,进行一些开发与测试,那么第三部分或许是你的菜。 1.1系统环境 1.1.1平台支持 平 台 运行c...