Author Topic: Move Block Grips as a Group  (Read 3802 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7527
Re: Move Block Grips as a Group
« Reply #15 on: November 16, 2017, 08:58:54 AM »
Yes, on the left side there is Position 1 (the one we want) and Position 3, on the right side it is Position 2 (the one we want) and Position 4. Positions 2 and 4 move a bit of text relative to Positions 1 and 2 respectively, I hope that makes sense.
The 'grip' selection is based on the window used. I updated the code above to exclude dynamic properties not named "POSITION*" .. see if that works for you.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

polhub

  • Guest
Re: Move Block Grips as a Group
« Reply #16 on: November 16, 2017, 01:32:01 PM »
All works great!

Isolated all the DBlock parameters so only position 1 & 2 were used, everything else I made more descriptive (as I should have done in the first place).

Thanks for the help, learned a lot from this one.

ronjonp

  • Needs a day job
  • Posts: 7527
Re: Move Block Grips as a Group
« Reply #17 on: November 16, 2017, 01:43:35 PM »
Glad you learned something  8)
« Last Edit: November 16, 2017, 01:47:44 PM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

cgeorg13

  • Guest
Re: Move Block Grips as a Group
« Reply #18 on: November 17, 2017, 07:07:38 AM »
That is some great usage of lambda and mapcar, ronjonp!

I'm not too familiar with its functionality since I rarely use it but stepping through your code line by line helped me understand it a bit more, thanks!

ronjonp

  • Needs a day job
  • Posts: 7527
Re: Move Block Grips as a Group
« Reply #19 on: November 17, 2017, 10:07:51 AM »
That is some great usage of lambda and mapcar, ronjonp!

I'm not too familiar with its functionality since I rarely use it but stepping through your code line by line helped me understand it a bit more, thanks!
Glad you could learn something from it!  :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC