乐筑天下

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

[编程交流] Help: Start up lisp

[复制链接]

8

主题

45

帖子

37

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 08:57:00 | 显示全部楼层 |阅读模式
Hi guys
 
I would like to have a lisp routine that will automatically load every time I open a drawing even when in the same session of Autocad.  The command that I want it to do is to set the variable "LAYEREVAL" set to "1" when I open a drawing.  How do I go about this?
 
Cheers
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 09:37:00 | 显示全部楼层
Please check this tutorial from LeeMac.
 
Regards,
Mircea
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 10:02:23 | 显示全部楼层
 
 
Actually, the file the OP should use (if they have write-access) is ACADDOC.lsp - See this tutorial instead.
 
** Note - Only use Startup Suite if you do not have write-access to ACADDOC.lsp
 
ACADDOC.lsp is a user defined file, meaning that AutoCAD does not come with this file, but you can create one if it does not already exist, and AutoCAD will automagically load this file if found anywhere within your Support File Search Paths (SFSP). This code will do what you have requested economically:
 
  1. (if (/= 1 (getvar 'layereval)) (setvar 'layereval 1))
 
HTH
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-7-7 16:31 , Processed in 0.469646 second(s), 58 queries .

© 2020-2025 乐筑天下

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