明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1462|回复: 2

一些不太明白的函数

[复制链接]
发表于 2004-11-7 03:55:00 | 显示全部楼层 |阅读模式
闹不明白这些函数的意义和用法,谁可以详细点告诉我一下,谢谢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
发表于 2004-11-7 08:12:00 | 显示全部楼层
; 1. tblobjname : 返回指定的符号表中元素(记录)实体名,这些符号表包括
; "LAYER", "LTYPE", "VIEW", "STYLE", "BLOCK", "UCS", "APPID", "DIMSTYLE", 和 "VPORT". (tblobjname "layer" "0") ;返回0层的实体名, 如: (setq en (tblobjname "layer" "0"))
(entget en) ((-1 . <Entity name: 7ef52c80>) (0 . "LAYER") (330 . <Entity name: 7ef52c10>)
(5 . "10") (100 . "AcDbSymbolTableRecord") (100 . "AcDbLayerTableRecord") (2 .
"0") (70 . 0) (62 . 7) (6 . "Continuous") (290 . 1) (370 . -3) (390 . <Entity
name: 7ef52c78>)) ; 2. tblnext : 在一个符号表中寻找下一个元素(一条记录)
; 假设我当前有图层 "0", "Layer1", "Layer2", "Layer3", "Layer4" Command: (tblnext "layer" T) ; T表示从第一个入口开始
((0 . "LAYER") (2 . "0") (70 . 0) (62 . 7) (6 . "Continuous")) Command: (tblnext "layer")
((0 . "LAYER") (2 . "Layer1") (70 . 0) (62 . 7) (6 . "Continuous")) Command: (tblnext "layer")
((0 . "LAYER") (2 . "Layer2") (70 . 0) (62 . 7) (6 . "Continuous")) Command: (tblnext "layer")
((0 . "LAYER") (2 . "Layer3") (70 . 0) (62 . 7) (6 . "Continuous")) Command: (tblnext "layer")
((0 . "LAYER") (2 . "Layer4") (70 . 0) (62 . 7) (6 . "Continuous")) Command: (tblnext "layer")
nil ; 3. tblsearch : 在符号表中搜索一条指定的记录 (tblsearch "layer" "Layer2" T) ; T 为tblnext函数指定了它从符号表的哪个入口开始 Command: (tblsearch "layer" "layer2" t)
((0 . "LAYER") (2 . "Layer2") (70 . 0) (62 . 7) (6 . "Continuous")) Command: (tblnext "layer")
((0 . "LAYER") (2 . "Layer3") (70 . 0) (62 . 7) (6 . "Continuous")) Command: (tblnext "layer")
((0 . "LAYER") (2 . "Layer4") (70 . 0) (62 . 7) (6 . "Continuous")) Command: (tblnext "layer")
nil
 楼主| 发表于 2004-11-10 13:29:00 | 显示全部楼层
谢谢王咣生斑竹,你的讲解实在太好了,我终于明白了!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-9-30 06:32 , Processed in 0.155028 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表