乐筑天下

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

[编程交流] Request: Routint to turn off C

[复制链接]

88

主题

346

帖子

281

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
423
发表于 2022-7-6 11:36:34 | 显示全部楼层 |阅读模式
I'm sure I will be embarrassed at how simple this is but I do not know how to write a simple routine to pick a single dimension and have the center mark setting changed to None.
I have to do this often enough that I'd like to have a C:MO (Mark Off) command for this situation. 99% of the time I need the Center Mark on.
 
I know I can pick it from the Properties Dialog.
I just would like a routine for these instances.
 
TIA!!
回复

使用道具 举报

0

主题

172

帖子

173

银币

限制会员

铜币
-1
发表于 2022-7-6 11:52:49 | 显示全部楼层
Create a second dimstyle with no centre mark and use this when you need it?
回复

使用道具 举报

88

主题

346

帖子

281

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
423
发表于 2022-7-6 11:58:33 | 显示全部楼层
I was hoping for a quicky two letter command if at all possible...
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
438
发表于 2022-7-6 12:06:08 | 显示全部楼层
Would this work? Untested...
 
  1. (defun c:TEst (/ #SS) (cond   ((setq #SS (ssget "_:L" '((0 . "DIMENSION"))))    (or *AcadDoc* (setq *AcadDoc* (vla-get-activedocument (vlax-get-acad-object))))    (vlax-for x (setq #SS (vla-get-activeselectionset *AcadDoc*))      (vl-catch-all-apply 'vla-put-centertype (list x acCenterNone))    ) ;_ vlax-for    (vl-catch-all-apply 'vla-delete (list #SS))   ) ) ;_ cond (princ)) ;_ defun
回复

使用道具 举报

88

主题

346

帖子

281

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
423
发表于 2022-7-6 12:13:17 | 显示全部楼层
Works like a charm!
Exactly what I was hoping for!!
 
Thank you SO much!!!
回复

使用道具 举报

88

主题

346

帖子

281

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
423
发表于 2022-7-6 12:23:06 | 显示全部楼层
I know a tiny bit about lisp but nothing about VLA.
Is is hard to code this in autolisp?
(I was just wondering how hard it would have been to code it in simple lisp)
(ie: How stupid am I really??!!)
 
If it's too much of a hassle, don't bother (it's works fine)
I'm just wondering from a "I'm trying to learn" standpoint..
 
thanks again either way!
回复

使用道具 举报

0

主题

148

帖子

151

银币

限制会员

铜币
-1
发表于 2022-7-6 12:34:48 | 显示全部楼层
Could you use the properties pallette?
回复

使用道具 举报

22

主题

272

帖子

254

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
111
发表于 2022-7-6 12:37:07 | 显示全部楼层
^C^C_DIMCEN;0;^C^C_-dimstyle _apply \\^C^C_DIMCEN;0.09
 
Put this code into button, replace last #( in red) with your variable.
I know I am late but it is simple to understand.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-6 02:17 , Processed in 0.606959 second(s), 68 queries .

© 2020-2025 乐筑天下

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