CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 15, 2019, 04:52:32 am


Login with username, password and session length


Pages: [1] 2
  Print  
Author Topic: Hatch plugin  (Read 5850 times)
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5591



View Profile WWW
« 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 » Logged
dave benson
CNC Jedi
*****
Offline Offline

Posts: 1131


View Profile
« Reply #1 on: December 23, 2016, 05:39:29 am »

HI David
Works fine Here
Dave
Logged
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5591



View Profile WWW
« Reply #2 on: December 23, 2016, 10:08:55 am »

V1.1 added (see 1st message)

add more hatch pattern

++
David
Logged
Bubba
CNC Jedi
*****
Offline Offline

Posts: 2674



View Profile
« Reply #3 on: December 23, 2016, 10:34:45 am »

Thanks David. As always , nice job!
Logged

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

Posts: 4031



View Profile
« Reply #4 on: December 23, 2016, 12:28:39 pm »

Yes it's a good one  Grin  well done David.

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

Made in England
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5591



View Profile WWW
« 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  Grin , 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
Logged
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 8033



View Profile
« 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
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 4031



View Profile
« 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  Grin , 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.
Logged

Made in England
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5591



View Profile WWW
« 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
Logged
newlinuxuser
Droid
**
Offline Offline

Posts: 78


View Profile
« Reply #9 on: January 06, 2017, 21:04:40 pm »

 Grin Grin Grin
Now works very well in linux too.
Logged
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5591



View Profile WWW
« 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
Logged
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5591



View Profile WWW
« Reply #11 on: January 06, 2017, 23:13:39 pm »

corrected in V 1.21

++
David
Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 4031



View Profile
« 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  Cheesy

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 ...  Wink

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

Made in England
SteveT
Storm Trooper
***
Offline Offline

Posts: 110



View Profile
« 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
Logged
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5591



View Profile WWW
« 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
Logged
Pages: [1] 2
  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.149 seconds with 18 queries.

Copyright © 2018 HexRay Ltd. | Sitemap