乐筑天下

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

[编程交流] (command "dim" "DIMLDRBLK" ""

[复制链接]

15

主题

43

帖子

28

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
75
发表于 2022-7-6 10:18:22 | 显示全部楼层 |阅读模式
(command "dim" "DIMLDRBLK" "_ORIGIN" |)
 
  this is my first command it is working properly to change leader arrow
but im trying change my variable to filled arrow using this command
 
(command "dim" "DIMLDRBLK" "" |)
 
but it is not working...
all other arrow types are working except filled arrow ("")
 
help please...
回复

使用道具 举报

62

主题

466

帖子

404

银币

后起之秀

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

铜币
310
发表于 2022-7-6 10:28:31 | 显示全部楼层
  1. (SETVAR 'DIMLDRBLK "OPEN");;whatever you're changing to
 
SEE DIMBLK System Variable in help for all options
回复

使用道具 举报

32

主题

1166

帖子

1146

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
159
发表于 2022-7-6 10:41:35 | 显示全部楼层
 
I just would like to mention to you that the filled arrow is not really a block, But is a actually a solid. The other arrows are blocks.
回复

使用道具 举报

32

主题

1166

帖子

1146

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
159
发表于 2022-7-6 10:49:56 | 显示全部楼层
I have this old dimstyle program I created the uses a list of names to choose the arrowhead. These are set to one variable through a conditional. Once a arrow style is chosen, I use (setvar "DIMLDRBLK" ARWSTYLE) with that variable.
 
See example below:
  1. (progn   (setq ARWSTYLE (fix ARWSTYLE))   (setq ARWSTYLE (nth ARWSTYLE ARS_LST))   (cond     ((= ARWSTYLE "Architectural Tick")   (setq ARWSTYLE "_ARCHTICK"))     ((= ARWSTYLE "Box")                  (setq ARWSTYLE "_BOXBLANK"))     ((= ARWSTYLE "Box Filled")           (setq ARWSTYLE "_BOXFILLED"))     ((= ARWSTYLE "Closed")               (setq ARWSTYLE "_CLOSED"))     ((= ARWSTYLE "Closed Blank")         (setq ARWSTYLE "_CLOSEDBLANK"))     [color=red][b]((= ARWSTYLE "Closed Filled")        (setq ARWSTYLE "."))[/b][/color]     ((= ARWSTYLE "Datum Triangle")       (setq ARWSTYLE "_DATUMBLANK"))     ((= ARWSTYLE "Datum Triangle Filled")(setq ARWSTYLE "_DATUMFILLED"))     ((= ARWSTYLE "Dot")                  (setq ARWSTYLE "_DOT"))     ((= ARWSTYLE "Dot Blank")            (setq ARWSTYLE "_DOTBLANK"))     ((= ARWSTYLE "Dot Small")            (setq ARWSTYLE "_DOTSMALL"))     ((= ARWSTYLE "Dot Small Blank")      (setq ARWSTYLE "_SMALL"))     ((= ARWSTYLE "Integral")             (setq ARWSTYLE "_INTEGRAL"))     ((= ARWSTYLE "None")                 (setq ARWSTYLE "_NONE"))     ((= ARWSTYLE "Oblique")              (setq ARWSTYLE "_OBLIQUE"))     ((= ARWSTYLE "Open")                 (setq ARWSTYLE "_OPEN"))     ((= ARWSTYLE "Open 30")              (setq ARWSTYLE "_OPEN30"))     ((= ARWSTYLE "Origin Indicator")     (setq ARWSTYLE "_ORIGIN"))     ((= ARWSTYLE "Origin Indicator 2")   (setq ARWSTYLE "_ORIGIN2"))     ((= ARWSTYLE "Right Angle")          (setq ARWSTYLE "_OPEN90"))   ) ) [b][color=red](setvar "DIMLDRBLK" ARWSTYLE)[/color][/b]
 
 
 
You could try maybe using (command "._dim" "DIMLDRBLK" ".") although I am not sure. I think the period might work in your case.
 
Or (setvar "DIMLDRBLK" ".") which I know will work.
 
From AutoCAD Help Section:
 
Type: String
Saved in: Drawing
Initial value: ""
Specifies the arrow type for leaders. To return to the default, closed-filled arrowhead display, enter a single period (.). For a list of arrowhead entries, see DIMBLK.
回复

使用道具 举报

15

主题

43

帖子

28

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
75
发表于 2022-7-6 11:01:35 | 显示全部楼层
(setvar "DIMLDRBLK" ".")

this string is working properly
 
thanks alot...
回复

使用道具 举报

32

主题

1166

帖子

1146

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
159
发表于 2022-7-6 11:14:49 | 显示全部楼层
 
Your very welcome
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

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

铜币
358
发表于 2022-7-6 11:18:36 | 显示全部楼层
 
A very great help from you Buzzard.
 
Highly appreciated.
 
Thanks a lot.
 
Tharwat
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-6 20:51 , Processed in 0.551368 second(s), 66 queries .

© 2020-2025 乐筑天下

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