乐筑天下

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

[编程交流] Dim Styles - 2 questions..

[复制链接]

88

主题

346

帖子

281

银币

后起之秀

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

铜币
423
发表于 2022-7-6 17:07:19 | 显示全部楼层 |阅读模式
1) Can the creation of new dim styles be automated?     Script? Lisp?
 
2) Can Dim Styles be locked such that they cannot be modified,
    bypassed or ignored?  
Ok.. so that's 4 questions...
 
Please advise!!
 
Thanks so much for all previous help!!
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 18:40:35 | 显示全部楼层
1) I personally have never tried to create a dimstyle via LISP methods, but I suppose the way I would go about it is to set all the dim variables to how I would like the dim-style to be:, i.e.
 
  1. DIMADEC     0                    Angular decimal placesDIMALT      Off                  Alternate units selectedDIMALTD     4                    Alternate unit decimal placesDIMALTF     0.0394               Alternate unit scale factorDIMALTRND   0.0000               Alternate units rounding valueDIMALTTD    4                    Alternate tolerance decimal placesDIMALTTZ    0                    Alternate tolerance zero suppressionDIMALTU     8                    Alternate unitsDIMALTZ     0                    Alternate unit zero suppressionDIMAPOST                         Prefix and suffix for alternate textDIMASZ      3.0000               Arrow sizeDIMATFIT    3                    Arrow and text fitDIMAUNIT    0                    Angular unit formatDIMAZIN     0                    Angular zero supressionDIMBLK      ClosedFilled         Arrow block nameDIMBLK1     ClosedFilled         First arrow block nameDIMBLK2     ClosedFilled         Second arrow block nameDIMCEN      0.0000               Center mark sizeDIMCLRD     5 (blue)             Dimension line and leader colorDIMCLRE     5 (blue)             Extension line colorDIMCLRT     2 (yellow)           Dimension text colorDIMDEC      2                    Decimal placesDIMDLE      0.0000               Dimension line extensionDIMDLI      2.0000               Dimension line spacingDIMDSEP     .                    Decimal separatorDIMEXE      2.0000               Extension above dimension lineDIMEXO      2.0000               Extension line origin offsetDIMFRAC     0                    Fraction formatDIMGAP      2.0000               Gap from dimension line to textDIMJUST     0                    Justification of text on dimension lineDIMLDRBLK   ClosedFilled         Leader block nameDIMLFAC     1.0000               Linear unit scale factorDIMLIM      Off                  Generate dimension limitsDIMLUNIT    2                    Linear unit formatDIMLWD      -2                   Dimension line and leader lineweightDIMLWE      -2                   Extension line lineweightDIMPOST                          Prefix and suffix for dimension textDIMRND      0.0000               Rounding valueDIMSAH      Off                  Separate arrow blocksDIMSCALE    0.0000               Overall scale factorDIMSD1      Off                  Suppress the first dimension lineDIMSD2      Off                  Suppress the second dimension lineDIMSE1      Off                  Suppress the first extension lineDIMSE2      Off                  Suppress the second extension lineDIMSOXD     Off                  Suppress outside dimension linesDIMTAD      3                    Place text above the dimension lineDIMTDEC     2                    Tolerance decimal placesDIMTFAC     1.0000               Tolerance text height scaling factorDIMTIH      Off                  Text inside extensions is horizontalDIMTIX      Off                  Place text inside extensionsDIMTM       0.0000               Minus toleranceDIMTMOVE    2                    Text movementDIMTOFL     Off                  Force line inside extension linesDIMTOH      Off                  Text outside horizontalDIMTOL      Off                  Tolerance dimensioningDIMTOLJ     1                    Tolerance vertical justificationDIMTP       0.0000               Plus toleranceDIMTSZ      0.0000               Tick sizeDIMTVP      0.0000               Text vertical positionDIMTXSTY    STANDARD             Text styleDIMTXT      2.5000               Text heightDIMTZIN     0                    Tolerance zero suppressionDIMUPT      Off                  User positioned textDIMZIN      8                    Zero suppression
 
And then include in my code:
 
  1. (vl-cmdf "-dimstyle" "Save" "My_Dimstyle")
 
But as I say, I have never tried myself, and so I would not know if this would work or not...
 
2) I personally do not think it is possible to lock a dimstyle, but others may prove me wrong.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-5-28 01:21 , Processed in 2.120362 second(s), 57 queries .

© 2020-2025 乐筑天下

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