乐筑天下

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

[综合讨论] By putting underscore "_", or

[复制链接]

12

主题

23

帖子

11

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
60
发表于 2022-7-7 13:42:54 | 显示全部楼层 |阅读模式
When we select from a Ribbon using mouse the underscore comes before command in command-line but when we type, we just write its name with out underscore. Also what is the meaning of dash "-" before command.
 
 
check.
 
 
_copy
-copy
copy
 
 
Are all the commands above same? If not please tell me the difference?
回复

使用道具 举报

29

主题

519

帖子

477

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
163
发表于 2022-7-7 14:08:44 | 显示全部楼层
The underscore before a command uses the English language command. This is used where the installed AutoCAD language is not English, for example German. If you have an English language version of AutoCAD then it does not matter if the underscore is there or not.
 
The dash "-" issues a command line version of the command without any dialogue boxes. This is not available for all of the commands, but most of them. Sometimes you get more options with a command line command, for example if you run the "-purge" command you get the option to delete registered applications, but this option is not available in the normal "purge" command.
回复

使用道具 举报

3

主题

8

帖子

5

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-7 14:14:27 | 显示全部楼层
So, can you do you do a command line version of an english language command? (e.g. "_-purge"?)
Also, I've seen some commands include a full-stop (period), what's up with that? (e.g. the command "_.purge" brings up the purge dialogue box)
 
EDIT: Derr, how about i try for myself?  Yes, _-purge brings up the english commandline version of purge.  Still not sure how "_.purge" differs from "_purge" though
回复

使用道具 举报

10

主题

92

帖子

82

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
50
发表于 2022-7-7 14:37:19 | 显示全部楼层
By placing a period in front of the command, you are running the real command, not a user defined command.
 
AutoCAD has a command named UNDEFINE that will temporarily remove a command.   For example, if you type UNDEFINE LINE, the line command will not work any longer.  If you type .LINE it will run the command even though it was undefined.   This is often used when someone want to create a custom command with the same name as the AutoCAD command.
 
BTW, you can use REDEFINE to restore the command.
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-7 14:46:32 | 显示全部楼层
A common redefine is CLOSE were you do something like purge before actually closing the dwg.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-7 06:32 , Processed in 0.935070 second(s), 62 queries .

© 2020-2025 乐筑天下

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