乐筑天下

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

[编程交流] need help for atomatic co-orin

[复制链接]

8

主题

38

帖子

39

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
50
发表于 2022-7-6 09:21:39 | 显示全部楼层 |阅读模式
hi guys how r u all u r help lots, again i want u r help to creat some lisp for me  i want lisp for to plot automatic co-ordinate
if i select pline or object lisp can give all "end points" or "mid points" co-ordinate in one time on dwg also lisp ask me for place ing of co-ordinat inside object or outside object .
try to u r best i attach a sample pdf
thanks
harshd
sample.pdf
sample2.pdf
回复

使用道具 举报

1

主题

64

帖子

69

银币

初来乍到

Rank: 1

铜币
2
发表于 2022-7-6 09:28:18 | 显示全部楼层
Ah, no help yet, gee, I dunno. give me a bit, I'll see if I can decifer your problem a little bit better.
回复

使用道具 举报

1

主题

64

帖子

69

银币

初来乍到

Rank: 1

铜币
2
发表于 2022-7-6 09:32:11 | 显示全部楼层
I'm real sorry, harshad, but the best I can do is give you a lisp that you have to pick the points and it will place the coord text beside the selected vertex.
 
But we do have some very excellent gurus, who I am sure will give you the program to help you.
 
In the meantime, if you want my lisp, just yell.
回复

使用道具 举报

8

主题

1133

帖子

1164

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-6 09:36:23 | 显示全部楼层
There was a LISP posted on 21 Dec 2006 by ASMI, that dimensioned the X and Y (same as E & N) in one pick, and then another pick to place the text.  
 
But I don't know how to go back far enough in the archive to give a reference - I only seem to be able to go back one year  
 
 
P.S. It would help some members of the Forum if you could please type in full words and remember that this is not a mobile phone  :wink:
回复

使用道具 举报

2

主题

439

帖子

536

银币

限制会员

铜币
-14
发表于 2022-7-6 09:38:57 | 显示全部楼层
> eldon
 
That is?
 
  1. (defun c:ordi(/ fPt oldEcho dFlc dDec *error*)  (defun *error*(msg)      (setvar "CMDECHO" oldEcho)    (princ)    ); end of *error*  (princ(strcat "DIMSCALE="(rtos                     (getvar "DIMSCALE"))" "        "DIMLFAC="(rtos                    (setq dFlc                     (getvar "DIMLFAC")))" "        "DIMDEC="(rtos                   (setq dDec                    (getvar "DIMDEC")))" " ); end strcat); end princ         (setq oldEcho(getvar "CMDECHO"))  (setvar "CMDECHO" 0) (while t (if    (setq fPt(getpoint "\nSpecify point or Esc to Quit > "))    (progn      (command "_.dimordinate" fPt "_t"          (strcat       "X=" (rtos(* dFlc(car fPt))2 dDec)       "\\X"       "Y=" (rtos(* dFlc(cadr fPt))2 dDec)       ); end strcat          pause          ); end command      ); end progn    ); end if   ); end while   (setvar "CMDECHO" oldEcho)  (princ)  ); end of c:ordi
 
> harshad
 
 
It's possible... Maybe some programmer (good magician), want to have a hour (or two) training and write it for you. But today I have decided to drink some a few vodka (or much) with my friends and I say goodbye to you.
 
P. S. What for you have broken SHIFT key?
回复

使用道具 举报

1

主题

64

帖子

69

银币

初来乍到

Rank: 1

铜币
2
发表于 2022-7-6 09:43:45 | 显示全部楼层
 
Thank you, eldon. I wasn't game to say that, just that I had to re-read to try and understand.
 
Thanks, ASMI. PM coming your way.
回复

使用道具 举报

8

主题

1133

帖子

1164

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-6 09:46:31 | 显示全部楼层
 
  Thank you for retrieving that routine ASMI, my copy was edited to suit me.
 
I am sure now that harshad will be able to do exactly as he wishes (with a little bit of editing)  
 
Are you referring to my SHIFT key? I didn't know it was showing  
 
(I spend too long typing, and Alan nips in ahead AGAIN!)
回复

使用道具 举报

8

主题

38

帖子

39

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
50
发表于 2022-7-6 09:52:49 | 显示全部楼层
thanks for replay me asmi take u r time !! if its possible so good for me and others also
 
thanks
harshad
回复

使用道具 举报

8

主题

38

帖子

39

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
50
发表于 2022-7-6 09:57:33 | 显示全部楼层
this lisp is given by fatty to me take  and modify as i requred
thanks
harshad
LP3.LSP
回复

使用道具 举报

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 10:00:54 | 显示全部楼层
I know this thread is 2 years old but came upon it looking for the same answer.  Your ordi.lsp routine is exactly what I need BUT I am having trouble getting it to display feet and inches.  My dimstyle is set for feet and inches and they display when I use the dimordinate command.  Do I have to edit the lsp routine?  Anychance you could help a kid out?
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-7 03:27 , Processed in 0.949218 second(s), 72 queries .

© 2020-2025 乐筑天下

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