乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 70|回复: 3

[编程交流] make 'lastpoint' Cur

[复制链接]

3

主题

6

帖子

3

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-6 17:09:14 | 显示全部楼层 |阅读模式
I am looking for a quick lisp that will let me take the last selected point in my drawing and make that the current layer.
回复

使用道具 举报

4

主题

940

帖子

961

银币

初来乍到

Rank: 1

铜币
12
发表于 2022-7-6 17:36:21 | 显示全部楼层
Edit the code I wrote for you by taking the line that says (setvar "clayer" oldlayer) out
or... why not use express tools' Laymcur command?
回复

使用道具 举报

3

主题

6

帖子

3

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-6 18:00:00 | 显示全部楼层
Okay, that worked.  I just don't know enough about editing lisp, to make any edits myself.
 
This was my other thought....
 
1. insert my block as normal, snapping to my line as I always do (atleast this way I can preview my block on my cursor, as I am inserting it)
 
2.  run lisp that takes the layer of the 'lastpoint' and makes this my current layer or 'clayer'.
 
3.  run 'laycur' command converting my 'last' block to the current layer.
 
4. layerp
回复

使用道具 举报

4

主题

940

帖子

961

银币

初来乍到

Rank: 1

铜币
12
发表于 2022-7-6 18:13:27 | 显示全部楼层
you're welcome
as for 1-4 see here
http://www.afralisp.net/
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-4 16:29 , Processed in 0.380149 second(s), 60 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表