乐筑天下

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

[编程交流] Move line, break points follow

[复制链接]

7

主题

30

帖子

23

银币

初来乍到

Rank: 1

铜币
35
发表于 2022-7-6 11:15:49 | 显示全部楼层 |阅读模式
This is hard to explain so I have an attachment here for you to see it, but here is the explanation:
 
I am not sure if autoCAD does this, or a lisp has to be made. Say you have 3 lines coming together forming a sideways tee. If I move one line, the break points follow, ohh heck, just look at the attachment!
 
lol
 
move line, break point followsl.pdf
 
you might have to rotate the PDF view counterclockwise  so you don't have to look at it with your head sideways
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 11:21:26 | 显示全部楼层
Sounds like it would need a reactor to update the positions of the other lines.
回复

使用道具 举报

7

主题

30

帖子

23

银币

初来乍到

Rank: 1

铜币
35
发表于 2022-7-6 11:25:11 | 显示全部楼层
aww man, so this would be a hard one?
 
 
dagnabit!
 
I hate having to highlight those other two lines and snap them to it. I am sure there is some piping company out there who has made it because after we survey the building, we do a lot of shifting. It takes forever!
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 11:32:04 | 显示全部楼层
Its do-able, but difficult, yes.
 
It would depend on how advanced you'd want to make it, but I could visualise using an Object Reactor to react upon modification of any of the three lines, and the parameter/handle at which the line was 'attached' would have to be stored in perhaps the xData of the object - like I do here.
 
But, using an object reactor that depends on multiple objects - one of which is being modified by the reaction - is difficult, as you have to prevent a recursive reactor call by temporarily deactivating the object reactor during the callback, and perhaps creating an instance of a command reactor to react after the object modification and prevent a recursive call to the object reactor. This method is described here... (yes, I've been down that road..)
 
So, all in all, as far as I can see (which may not be too far), the difficulty in coding outweighs the gain.
 
Lee
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

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

铜币
438
发表于 2022-7-6 11:35:57 | 显示全部楼层
Didn't you learn anything in Physical Education? :wink: Don't forget to Stretch.
 
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 11:38:12 | 显示全部楼层
 
My CAD ignorance and devotion to programming reveals itself yet again... very nice Alan.
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

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

铜币
438
发表于 2022-7-6 11:45:13 | 显示全部楼层
 
No worries. Once in a while, I'll write some code only to then remember that a close-enough-command exists. I just facepalm and go on with my day.
I was just hoping you'd read it before cutting a bunch of code.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 11:46:22 | 显示全部楼层
 
Oh don't worry, this thread was never going to get to that...
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

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

铜币
438
发表于 2022-7-6 11:50:12 | 显示全部楼层
 
HaHa, right on.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 11:55:07 | 显示全部楼层
 
I doubt you'll be wanting to mention this thread to your boss then...
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-6 11:18 , Processed in 0.562919 second(s), 72 queries .

© 2020-2025 乐筑天下

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