乐筑天下

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

[编程交流] Find-Replace text in dim.

[复制链接]

18

主题

66

帖子

48

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
90
发表于 2022-7-5 20:12:33 | 显示全部楼层 |阅读模式
Hello all,
  I am looking for a LISP  that will find/replace text from all dim strings from non stacked to stacked fraction horizontal.
  Thank you.
回复

使用道具 举报

27

主题

182

帖子

163

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
139
发表于 2022-7-5 20:51:40 | 显示全部楼层
Can you show a example? The command Find/Replace usually works in dim also.
回复

使用道具 举报

18

主题

66

帖子

48

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
90
发表于 2022-7-5 20:53:27 | 显示全部楼层
I have attached a pdf file with desired dim text.
Those dimensions are for arcs and were created with this lisp:
  1. ; DLA.LSP - dimension length of arc; modified version of DIMARC from (^v^) XANADU, http://www.xanadu.cz; runs continuously -  to exit(defun C:DLA ( / *ERROR* pt1 pt2 cen a1 a2 ad D1 D i r oldOs oldCmde)(defun *ERROR* (msg)  (princ " function")  (setvar "OSMODE" oldOs)  (setvar "CMDECHO" oldCmde)  (princ))(setq oldCmde (getvar "CMDECHO"))(setq oldOs (getvar "OSMODE"))(setvar "CMDECHO" 0)(while T (princ "\n Pick 2 points on an arc - ") (setvar "OSMODE" 33)   (while (not cen)      (setq pt1 (getpoint "\n 1st pt: ")        cen (osnap pt1 "_CEN")      )      (if (not cen) (alert "Doesn't lay on an arc, retry")    (setq pt2 (getpoint pt1 "\n 2nd pt: "))      )   ) ; while (setvar "OSMODE" 0) (setq a1 (angle cen pt1)        a2 (angle cen pt2)        ad (abs (- a2 a1))   r (distance pt1 cen)   D1 (* r ad)       D2 (* r (- (* 2 pi) ad)) ) (princ (strcat "\n Arc length (1) = " (rtos D1) ", Complement (2) = " (rtos D2))) (setq D D1) (initget "1 2") (princ "\n Place dimension : ") (if (= i "2") (setq D D2)) (command "_DIMANGULAR" "" cen pt1 pt2 "_T" (rtos D1) pause "") (setq cen nil)) ; while(setvar "OSMODE" oldOs)(setvar "CMDECHO" oldCmde)(princ))
When I went to properties of those Arc Length Dimensions under the Text, Fractional Type was not there.
 
Thanks for the help.
 
PS: Don't know the creator of this lisp to give credit for his(her) work.
回复

使用道具 举报

18

主题

66

帖子

48

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
90
发表于 2022-7-5 21:21:24 | 显示全部楼层
I forgot the pdf file.
Sorry !!!
 
Dim Text_change.pdf
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-7-7 09:54 , Processed in 0.546361 second(s), 61 queries .

© 2020-2025 乐筑天下

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