- 积分
- 57120
- 明经币
- 个
- 注册时间
- 2005-5-26
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2017-12-21 23:10:12
|
显示全部楼层
您可以每段加
或借重EntNext函数
这个讨论个很多次,请自行搜寻...
Returns the name of the next object (entity) in the drawing
(entnext [ename])
Arguments
ename
The name of an existing entity.
Return Values
If entnext is called with no arguments, it returns the entity name of the first nondeleted entity in the database. If an ename argument is supplied to entnext, the function returns the entity name of the first nondeleted entity following ename in the database. If there is no next entity in the database, it returns nil. The entnext function returns both main entities and subentities.
Examples
(setq e1 (entnext)) ; Sets e1 to the name of the first entity in the drawing
(setq e2 (entnext e1)) ; Sets e2 to the name of the entity following e1
Notes
|
|