乐筑天下

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

[编程交流] Looking for a LISP routine: Mu

[复制链接]

49

主题

1246

帖子

1210

银币

后起之秀

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

铜币
254
发表于 2022-7-6 10:24:15 | 显示全部楼层 |阅读模式
Hey everyone, looking for some help here. I have been searching for a half hour but no luck. I seem to recall a program that someone made that operates like the MLINE tool, but just with normal polylines. I have done some searching over at The Swamp as well, and I can't find it.
 
I want MLINE functionality but I just don't want to deal with the hassle of setting up MLSTYLE's etc, I just want to initiate the program, input how many plines and what the offset is and draw. Wasn't there something like this that existed? I thought I saved it a long time ago but when I searched through my collection of downloads, no dice. Any help would be appreciated. Thanks again in advance!!
 
- Tannar
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 10:28:45 | 显示全部楼层
Is this what you were looking for?
 
http://www.cadtutor.net/forum/showthread.php?9434-Multiple-Offset
回复

使用道具 举报

49

主题

1246

帖子

1210

银币

后起之秀

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

铜币
254
发表于 2022-7-6 10:33:24 | 显示全部楼层
Mark, Thanks for the help but that works like the normal offset command. I'm wanting the multiple offset polylines to be active as I'm drawing.
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 10:35:14 | 显示全部楼层
 
 
Do you mean, that once you offset a line, the resultant line is now the 'active' line to be offset?
 
If not, please clarify.
回复

使用道具 举报

49

主题

1246

帖子

1210

银币

后起之秀

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

铜币
254
发表于 2022-7-6 10:39:28 | 显示全部楼层
Sorry for my lack of clarification. Here's is exactly how the program worked that I found in the past:
 
1. You initiate the program, and it asks for two initial criteria: the distance of the offset, and how many lines you want.
 
2. You draw as if you were routing a single PLINE in your drawing, but as you draw the predetermined number of polylines will also be drawn, all at the offset distance that was preset by the user.
 
Works exactly like the MLINE command, except no hassle in setting up MSTYLE's before you start drawing to get the proper offsets you want.
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 10:41:28 | 显示全部楼层
No worries.
 
Had my speculation been correct, I could have easily revised some existing code.
 
Good luck!
回复

使用道具 举报

26

主题

1495

帖子

20

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
118
发表于 2022-7-6 10:44:37 | 显示全部楼层
 
Tanner, It is definitely doable.
 
Are all there any bulges ( arcs ) segments?
Are all of the lytypes bylayer?
Is everything 2D geometry?
Is the number of offset equal for both sides?
 
-David
回复

使用道具 举报

49

主题

1246

帖子

1210

银币

后起之秀

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

铜币
254
发表于 2022-7-6 10:48:57 | 显示全部楼层
David,
 
- No arcs or radius corners, all mitered.
- ByLayer is fine, it'll be going on a pre-existing M-PIPE layer.
- Everything 2D
- Yes, the offset should be consistent with every PLINE.
 
I'm not asking for someone to write one, this program does exist, I'm just trying to dig it up. I can't believe I didn't save it when I saw it a couple of years ago. It's just to show mechanical piping routing from mechanical units in an architectural plan. I'll be utilizing the Tool Palettes in conjunction with this program. It's just a hassle to use MLINEs because you have to create styles which takes time, then explode them to break the crossing lines, etc.
回复

使用道具 举报

26

主题

1495

帖子

20

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
118
发表于 2022-7-6 10:51:32 | 显示全部楼层
Here is what I do when I get in the fix that you're in
 
Doe you have a file mangement program ( XTREE ZTREE ) that can search multpile files for text?
Filter only .lsp files
Search for terms that you remember in the prompts.  In this case   'offset    'quantity
Maybe 'M-PIPE if the program set it to the layer
Maybe 'grdraw if it drew phantom lines as the user input was collected
 
If I get down to 10 or so files then I'll open view each one to see if I can find it that way.
 
I have 2,000+ routines and I am getting long in the tooth so I get in that pinch fairly often.
 
But in the end it is not hard to redo it.  -David
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 10:55:44 | 显示全部楼层
Seems you've been over this same ground before (2007).
 
http://www.cadtutor.net/forum/archive/index.php/t-15686.html
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-6 22:06 , Processed in 0.489839 second(s), 72 queries .

© 2020-2025 乐筑天下

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