Author Topic: Hatch plugin  (Read 10669 times)

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7146
    • View Profile
    • Cambam V1.0 French Doc
Hatch plugin
« on: December 23, 2016, 05:29:24 am »
Hello,

I just finished a first version of a hatch plugin.

select on or more shape the hit the hatch toolbar icon or the draw/hatch menu.

select hatch type, size and angle then clik OK

- more pattern will be implemented later

works on both V0.9.8 and V1.0




V1.0 first release 23/12/2016

V1.1 Ansi 33,35,36,38 hatch pattern added, tool-tip for hatch pattern now translatable

V1.2 - 07-jan-2017
 -     new patterns with X and Y spacing, 1/2 Line shift, and scale settings.
 -     preview button
 -     works on Windows and Linux (see notes on the web page)

http://www.atelier-des-fougeres.fr/Cambam/Aide/Plugins/Hatch_EN.html

++
David
« Last Edit: January 06, 2017, 20:47:56 pm by dh42 »

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1745
    • View Profile
Re: Hatch plugin
« Reply #1 on: December 23, 2016, 05:39:29 am »
HI David
Works fine Here
Dave

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7146
    • View Profile
    • Cambam V1.0 French Doc
Re: Hatch plugin
« Reply #2 on: December 23, 2016, 10:08:55 am »
V1.1 added (see 1st message)

add more hatch pattern

++
David

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3296
    • View Profile
Re: Hatch plugin
« Reply #3 on: December 23, 2016, 10:34:45 am »
Thanks David. As always , nice job!
My 2¢

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

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5156
  • Made in England
    • View Profile
Re: Hatch plugin
« Reply #4 on: December 23, 2016, 12:28:39 pm »
Yes it's a good one  ;D  well done David.

Is the angle parameter correct though ?
« Last Edit: December 23, 2016, 12:36:35 pm by EddyCurrent »
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7146
    • View Profile
    • Cambam V1.0 French Doc
Re: Hatch plugin
« Reply #5 on: December 23, 2016, 13:38:03 pm »
Quote
Is the angle parameter correct though ?

I use the same rules than Autocad, so the ANSI hatch with angle = 0 give 45° hatch and the patterns like stars, crosses, etc (not yet implemented) give horizontal pattern with angle = 0

For the history, I searched why I had a strange comportment of the plugin after I add a few change in the code (all hatch regions was selected together) ; I added the name of the pattern (like "ANSI31") in the Tag field.

after some minutes I understood that it's the Group plugin that group all the regions with the same tag name  ;D , so I assume that the group plugin not only groups objects with tags text that begin with Groupxxx but any objects with the same text in tag .. lol

++
David

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8820
    • View Profile
Re: Hatch plugin
« Reply #6 on: December 23, 2016, 14:17:29 pm »
David,
Thank you!  That will really 'pretty-up' some of my drawings I must present for review by the clients.  That will, to some degree, at least, reduce my having to export them to another drawing package.

LLoyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5156
  • Made in England
    • View Profile
Re: Hatch plugin
« Reply #7 on: December 23, 2016, 14:17:59 pm »
Quote
Is the angle parameter correct though ?

after some minutes I understood that it's the Group plugin that group all the regions with the same tag name  ;D , so I assume that the group plugin not only groups objects with tags text that begin with Groupxxx but any objects with the same text in tag .. lol

++
David


David,

You are correct, the Group plugin does not care what the text is, it only looks for the same text. That is why the Group name can be anything.
It would be ideal if a new field could be added to each entity for a Group name.
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7146
    • View Profile
    • Cambam V1.0 French Doc
Re: Hatch plugin
« Reply #8 on: January 06, 2017, 20:55:45 pm »
Hello

I just add a new version with more patterns, x and y spacing settings, 1/2 line shift option, and a scale value that can be used to scale the size/x spacing/y spacing in one shot.

A preview button is also added.

works also on linux if libmono visual-basic is installed (see web page)



see the first message for the download link

++
David

Offline newlinuxuser

  • Droid
  • **
  • Posts: 91
    • View Profile
Re: Hatch plugin
« Reply #9 on: January 06, 2017, 21:04:40 pm »
 ;D ;D ;D
Now works very well in linux too.

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7146
    • View Profile
    • Cambam V1.0 French Doc
Re: Hatch plugin
« Reply #10 on: January 06, 2017, 21:11:30 pm »
I just found a little bug ; I forgot to test for bad value in the textbox ... oops

++
David

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7146
    • View Profile
    • Cambam V1.0 French Doc
Re: Hatch plugin
« Reply #11 on: January 06, 2017, 23:13:39 pm »
corrected in V 1.21

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5156
  • Made in England
    • View Profile
Re: Hatch plugin
« Reply #12 on: January 07, 2017, 08:43:55 am »
David,

I think it needs the option for 'user defined' patterns now.

Edit:

But I see you already have that in hand  :D

Hello,

I'm working currently to add new patterns to the Hatch plugin ... and maybe (if it would work), a way to define custom patterns ...  ;)

++
David
« Last Edit: January 07, 2017, 08:47:48 am by EddyCurrent »
Filmed in Supermarionation

Offline SteveT

  • Storm Trooper
  • ***
  • Posts: 128
    • View Profile
Re: Hatch plugin
« Reply #13 on: January 07, 2017, 09:31:01 am »
Hi, Just tried Hatch V1.21 in CB V1 Linux and it works great, I have a project in which I am trying to copy the affect of straight engine turning on my CNC mill like this https://engineturning.files.wordpress.com/2014/07/guillochecc81-callie-shelvin-viii.jpg
Is there a way I can generate this type of affect with the Hatch plugin.

Steve

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7146
    • View Profile
    • Cambam V1.0 French Doc
Re: Hatch plugin
« Reply #14 on: January 07, 2017, 22:59:01 pm »
Hello,

Quote
Is there a way I can generate this type of affect with the Hatch plugin.

no, I do not think ... I assume that you need a "Polar Array Copy" to do that.

++
David