CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 19, 2019, 04:17:21 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Draw Centre Lines plugin  (Read 1581 times)
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3815



View Profile
« on: July 27, 2017, 09: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

* CentreLines_v2.zip (3.07 KB - downloaded 114 times.)
« Last Edit: July 27, 2017, 12:31:48 pm by EddyCurrent » Logged

Made in England
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3815



View Profile
« Reply #1 on: July 27, 2017, 16:22:38 pm »

Lest we forget, they can also be converted to dashed lines  Grin
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


* centre.jpg (128.83 KB, 800x755 - viewed 186 times.)
« Last Edit: July 27, 2017, 16:31:34 pm by EddyCurrent » Logged

Made in England
Bubba
CNC Jedi
*****
Offline Offline

Posts: 2551



View Profile
« Reply #2 on: July 27, 2017, 17:51:55 pm »

Lest we forget, they can also be converted to dashed lines  Grin
**********************

+1
Here's to you Eddy!! Grin Grin Grin
Logged

My 2¢
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3815



View Profile
« Reply #3 on: August 05, 2017, 21:19:19 pm »

Many thanks Bubba.

I've attached the VS source project files

* CentreLines.zip (9.56 KB - downloaded 127 times.)
Logged

Made in England
Bubba
CNC Jedi
*****
Offline Offline

Posts: 2551



View Profile
« Reply #4 on: August 06, 2017, 01: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! Cheesy
Logged

My 2¢
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.108 seconds with 20 queries.

Copyright © 2018 HexRay Ltd. | Sitemap