乐筑天下

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

[编程交流] Measure-like Command

[复制链接]

21

主题

146

帖子

127

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
106
发表于 2022-7-6 15:28:42 | 显示全部楼层
 
You normally give good advice. But learning LISP now is analogous to wearing a mullet in the late 90's.
回复

使用道具 举报

0

主题

119

帖子

119

银币

初来乍到

Rank: 1

铜币
0
发表于 2022-7-6 15:32:22 | 显示全部楼层
O RLY? Actually that's the sort of comments you would hear about LISP back then.
回复

使用道具 举报

21

主题

146

帖子

127

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
106
发表于 2022-7-6 15:34:35 | 显示全部楼层
I don't see it coming back into fashion, though, unlike the mullet.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 15:38:33 | 显示全部楼层
LISP will keep going for some time I reckon, and so whats the harm in learning it..
 
*Thats what I keep telling myself anyway...*
回复

使用道具 举报

10

主题

973

帖子

909

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
118
发表于 2022-7-6 15:42:38 | 显示全部楼层
 
Ah, I based the measured position on the startpoint of the curve as well.  
 
It sounds like the routine I posted above will not handle all  the requirements.  Just as well – I rushed to post that before leaving the desk this morning and it likely contains all manner of disappointments.  I really should know better.
 
If I get some time this weekend I’ll see what I can do to refine it a bit.
回复

使用道具 举报

10

主题

973

帖子

909

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
118
发表于 2022-7-6 15:42:59 | 显示全部楼层
As I eventually came to expect, my earlier posting has it’s problems.  One of which is the inability to process LightWeight Polylines.  Not insurmountable, necessarily, but requiring a geometry restructure.
 
When you say:
 
 
What type of geometry are you dealing with – 3dPolys, Splines?   I don’t imagine either LightWeight or 2D polys would be useful with the natural undulations of a countryside.
回复

使用道具 举报

21

主题

146

帖子

127

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
106
发表于 2022-7-6 15:48:57 | 显示全部楼层
 
2D/3D polylines mainly when we're using models created in other sof****re (MX for roads etc). At the moment I have to copy the 3D versions and then convert them to 2D to successfully use the measure and divide etc after I've trimmed them down etc.
 
I've got the tools to do the job, and I'm working on alternatives in .NET myself.Although I wan't to be better at the general application of C# before I really get stuck in with CAD - which is my rationale for learning the language.
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

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

铜币
438
发表于 2022-7-6 15:52:23 | 显示全部楼层
this might work, after switching to c3d, i had to rewrite the retired land desktop command "continuous copy". i finally got around to doing it friday.
you are more than welcome to it if it's what you need.
 

[code];;; ------------------------------------------------------------------------;;;    ContinuousCopy.lsp;;;;;;    Copyright© 03.06.09;;;    Alan J. Thompson (alanjt);;;;;;    Permission to use, copy, modify, and distribute this software;;;    for any purpose and without fee is hereby granted, provided;;;    that the above copyright notice appears in all copies and;;;    that both that copyright notice and the limited warranty and;;;    restricted rights notice below appear in all supporting;;;    documentation.;;;;;;    Modeled after the Land Desktop 'retired' "Continuous Copy" command;;;    (some coding borrowed from original Land Desktop routine).;;;    User is able to continuously copy selected object(s) along a;;;    defined angle & distance. Distance may be changed at any time.;;;;;; ------------------------------------------------------------------------(defun c:CC () (c:ContinuousCopy))(defun c:ContinuousCopy      (/ *error* #OldCmdecho #CopyGroup #Angle #Dist #Temp #Ent);;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SUBROUTINES ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;error handler (defun *error* (msg)   (if    #OldCmdecho     (setvar "cmdecho" #OldCmdecho)   ) ) ;_ defun;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; MAIN ROUTINE ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (setq #OldCmdecho (getvar "cmdecho")) (setvar "cmdecho" 0) (prompt "\nContinuous Copy") (if   (and     (setq #CopyGroup (ssget ":L"))     (setq #Angle (getangle "\nAngle for copy: "))     (setq #Dist (getdist "\nDistance to copy: "))     (setq #Temp (strcat           "@"           (rtos #Dist 2 6)           "
回复

使用道具 举报

21

主题

146

帖子

127

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
106
发表于 2022-7-6 15:54:25 | 显示全部楼层
I will indeed give it a shot at work tomorrow. Thankyou in advance.
回复

使用道具 举报

CAB

29

主题

781

帖子

430

银币

中流砥柱

Rank: 25

铜币
526
发表于 2022-7-6 15:57:09 | 显示全部楼层
You may get some ideas from this thread:
http://cadtutor.net/forum/showpost.php?p=62903&postcount=22
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-5 00:33 , Processed in 0.504219 second(s), 70 queries .

© 2020-2025 乐筑天下

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