TimZilla 发表于 2022-7-6 11:15:49

Move line, break points follow

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 counterclockwiseso you don't have to look at it with your head sideways

Lee Mac 发表于 2022-7-6 11:21:26

Sounds like it would need a reactor to update the positions of the other lines.

TimZilla 发表于 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!

Lee Mac 发表于 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

alanjt 发表于 2022-7-6 11:35:57

Didn't you learn anything in Physical Education? :wink: Don't forget to Stretch.
 

Lee Mac 发表于 2022-7-6 11:38:12

 
My CAD ignorance and devotion to programming reveals itself yet again... very nice Alan.

alanjt 发表于 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.

Lee Mac 发表于 2022-7-6 11:46:22

 
Oh don't worry, this thread was never going to get to that...

alanjt 发表于 2022-7-6 11:50:12

 
HaHa, right on.

Lee Mac 发表于 2022-7-6 11:55:07

 
I doubt you'll be wanting to mention this thread to your boss then...
页: [1] 2
查看完整版本: Move line, break points follow