Author Topic: Draw Centre Lines plugin  (Read 6814 times)

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5262
  • Made in England
    • View Profile
Draw Centre Lines plugin
« on: July 27, 2017, 08:55:34 am »
In response to this thread; http://www.cambam.co.uk/forum/index.php?topic=6737.msg54555#msg54555

This plugin draws centre lines for Rectangles, I plan to add circles soon and circles

It will appear in the 'Draw' menu as 'Centre Lines'
Just select one rectangle or circle then run the plugin.

It should work on CamBam 0.9.8. and 1.0

I had to go on a detour to get this working due to the transformations not being applied to rotated objects etc.

Edit: version 2 attached
1. works with rectangles and circles
2. translation added for message box
3. undo points added
« Last Edit: July 27, 2017, 11:31:48 am by EddyCurrent »
Filmed in Supermarionation

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5262
  • Made in England
    • View Profile
Re: Draw Centre Lines plugin
« Reply #1 on: July 27, 2017, 15:22:38 pm »
Lest we forget, they can also be converted to dashed lines  ;D
http://www.atelier-des-fougeres.fr/Cambam/Aide/Plugins/Dashed_Lines.html

And if you use the 'Groups' plugin they can become as one object making for easy manipulation.
http://www.atelier-des-fougeres.fr/Cambam/Aide/Plugins/Groups.html
« Last Edit: July 27, 2017, 15:31:34 pm by EddyCurrent »
Filmed in Supermarionation

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3355
    • View Profile
Re: Draw Centre Lines plugin
« Reply #2 on: July 27, 2017, 16:51:55 pm »
Lest we forget, they can also be converted to dashed lines  Grin
**********************

+1
Here's to you Eddy!! ;D ;D ;D
My 2¢

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5262
  • Made in England
    • View Profile
Re: Draw Centre Lines plugin
« Reply #3 on: August 05, 2017, 20:19:19 pm »
Many thanks Bubba.

I've attached the VS source project files
Filmed in Supermarionation

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3355
    • View Profile
Re: Draw Centre Lines plugin
« Reply #4 on: August 06, 2017, 00:48:28 am »
Many thanks Bubba.

I've attached the VS source project files

Don't need to thank me. You did all the work! :D
My 2¢

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.