Basic Pattern Maker [ Windows & Linux ]

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Basic Pattern Maker [ Windows & Linux ]

Post by John Hyslop » Fri Apr 28, 2023 10:47 am

Hi all
It's been a while since I've posted so hopefully you'll all like this one :)
I was working on this very simple pattern maker and PeteVick asked me if I was interested in sharing the code because my compiler was limited to Windows only Apps and he uses Lazarus [ Pascal ] that can compile to both systems... so I said yes and I have to say I'm very pleased with the end results.
After Pete ported my code across he added quite a few more enhancements.. :D "plus we've enjoyed a bit of banter in the process..."
So just letting you all know this was very much a joint effort..
I would also like to thank JJ who did some testing and feedback on the original.. and Husky who has picked up on so many errors and bugs in the past couple of months... Many Thanks :)
.
BPM for now is Limited to Points & Angles 0,45,90,135,180,225,270 & 315
Here are some App screenshots...
BPM - Example - Seamless - Pattern.png
BPM - Example - Seamless - Pattern.png (196.91 KiB) Viewed 19899 times
BPM - Mountains.png
BPM - Mountains.png (38.05 KiB) Viewed 19899 times
BPM - Custom-Dash-Dot.png
BPM - Custom-Dash-Dot.png (41.31 KiB) Viewed 19899 times
.
And here are some patterns made with BPM..
BPM - Example Patterns-02.png
BPM - Example Patterns-02.png (8.29 KiB) Viewed 19899 times
BPM - Example Patterns.png
BPM - Example Patterns.png (17.32 KiB) Viewed 19899 times
.
And this is it in action...
BPM - Demo.gif
BPM - Demo.gif (1.55 MiB) Viewed 19899 times
.
New Version Uploaded Look Further Down
.
Previous Version v1.1.0 was downloaded:-
Basic Pattern Maker Install – Windows.zip
Downloaded 51 times
Basic Pattern Maker Install – Linux x32.zip
Downloaded 32 times
Basic Pattern Maker Install – Linux x64.zip
Downloaded 34 times

.
Happy Hatching :)
Cheers
John Hyslop & Pete Vickerstaff
Last edited by John Hyslop on Sat Jul 08, 2023 3:05 am, edited 1 time in total.
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Basic Pattern Maker [ Windows & Linux ]

Post by CVH » Fri Apr 28, 2023 6:20 pm

John Hyslop wrote:
Fri Apr 28, 2023 10:47 am
BPM for now is Limited to Points & Angles 0,45,90,135,180,225,270 & 315
Keeping the chances of QCAD lagging low. :wink:
And it would stretch far beyond normal usage. 8)
The general advice remains to keep the hatching origin close.

Is it restricted to squared tiles, tiling orthogonal in X/Y?

Regards,
CVH

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Basic Pattern Maker [ Windows & Linux ]

Post by John Hyslop » Fri Apr 28, 2023 11:22 pm

Hi CVH

Yes it is also restricted to square tiles orthogonal in X and Y.
We've kept this a very simple pattern maker, but even with these limitations , some very nice patterns can be created with this.. :D
That's why Pete and I decide to call it "Basic Pattern Maker" 😉

Happy Hatching 😊

Cheers
John
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Basic Pattern Maker [ Windows & Linux ]

Post by John Hyslop » Sat Jul 08, 2023 3:12 am

Hello everyone, it’s been a while since I last posted…
The Lazarus Wizard PeteVick has been busy adding some nice features to our app. :D
They are:-
Save Sketch / Open Sketch and Edit Sketch
“for usage see information/help button in app”

I’m also including some sample sketch files for you all to play around with..
You can easily create file associations with these in Linux & Windows by right clicking or double clicking the bpmlc file and selecting open with “Basic Pattern Maker” don’t forget to set this to defaults “always open with”.

Please uninstall previous versions, in particular Linux users as these are now deb packages and the previous installers were not … they are not maintained by DEBIAN they are self maintained by Pete and myself.
.
BPM-v1.3.3.gif
BPM-v1.3.3.gif (2.96 MiB) Viewed 17803 times
.

.
Linux users please uninstall previous version as these are now deb packages
browse to home/username/Basic Pattern Maker/Basic Pattern Maker Uninstall

.
New Version Look Down / Fixed "App split between the two monitors"
with dual monitor setup.

.

.
.
Happy Hatching
Cheers
John Hyslop & Pete Vickerstaff
Last edited by John Hyslop on Sun Jul 09, 2023 7:59 am, edited 1 time in total.
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

User avatar
lphilpot
Senior Member
Posts: 119
Joined: Mon Oct 30, 2017 4:03 am
Location: Deep South USA

Re: Basic Pattern Maker [ Windows & Linux ]

Post by lphilpot » Sat Jul 08, 2023 4:19 pm

Question - On my Windows 11 two-monitor computer it always starts in the dead middle, split between the two monitors. Is there a way to make it remember its last position or specify display geometry?

Thanks.
Len
QCAD Pro

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Basic Pattern Maker [ Windows & Linux ]

Post by John Hyslop » Sat Jul 08, 2023 10:51 pm

Hi Len
We initially had some trouble with window positioning the preview window was going off the screen and there was no way to grab the tool bar to drag it into position.
I have a two monitor set-up but I run Linux Mint and don't have this problem, we'll have a look at this as there are settings for the positioning.. I'll try running my windows VM on two screens to see what happens, it could also be a Windows 11 thing BPM hasn't been tested on 11..

Meanwhile you could Google this "MultiMonitorTool"

Thanks for the feedback..

Cheers
John
PS I've not tested MultiMonitorTool but it's free and has a 4/5 star review.. Hopefully it gets you out of trouble for now..
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

User avatar
lphilpot
Senior Member
Posts: 119
Joined: Mon Oct 30, 2017 4:03 am
Location: Deep South USA

Re: Basic Pattern Maker [ Windows & Linux ]

Post by lphilpot » Sat Jul 08, 2023 11:25 pm

I'll take a look but the initial positioning thing isn't a problem, more just a curiosity.

Thanks.
Len
QCAD Pro

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Basic Pattern Maker [ Windows & Linux ]

Post by John Hyslop » Sun Jul 09, 2023 8:15 am

Hi All

Thanks Len for picking this up...
There was a problem with dual monitor setups, the App would open split between the two monitors.. e_surprised
New V1.3.4 Updates below.. there is no need to update if you're a single monitor user..
..
Linux users please uninstall old version 1.1.0 "if you have it installed" as these are now deb packages browse to home/username/Basic Pattern Maker/Basic Pattern Maker Uninstall
.
To uninstall deb versions type this in the terminal:-
sudo apt remove basic-pattern-maker

.
NEW Version Uploaded Look Further On
.
BPM - V1.3.4-Setup-Windows.zip
Was Downloaded 145 times

.
BPM - V1.3.4-Setup-Linux32bit.zip
Was Downloaded 131 times

.
BPM - V1.3.4-Setup-Linux64bit.zip
Was Downloaded 135 times

.
Cheers
John & Pete
Happy Hatching :D
Last edited by John Hyslop on Fri Nov 10, 2023 2:51 am, edited 2 times in total.
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

333onlyhalfevil
Junior Member
Posts: 21
Joined: Fri Apr 28, 2023 12:39 pm

Re: Basic Pattern Maker [ Windows & Linux ]

Post by 333onlyhalfevil » Tue Jul 11, 2023 4:20 pm

Hello. Cool basic pattern maker program you guys have made.

Not sure if you/others know or not but autocad has a really good third party plugin that can output .pat files based on cad drawing input. Assuming you either have access to autocad or are willing to work with the free trial version, you could potentially use that to help you improve your basic pattern maker. I believe that the autocad one I'm referring to allows circles, arcs, etc. The idea I'm suggesting would be to use it to, say, input one simple circle, arc, etc., and then analyze the .pat file output to see how they're converting a cad circle entity to .pat format and then use that information to upgrade your own basic pattern maker. Just my 2 cents / food for thought. You can find information on the pattern maker I'm talking about by following these links:

https://www.mladengradev.com/en/create- ... n-autocad/
https://www.youtube.com/watch?v=XEZDJc7gNeY&t=1128s

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Basic Pattern Maker [ Windows & Linux ]

Post by CVH » Tue Aug 01, 2023 6:47 am

Removed: Off-Topic
Last edited by CVH on Wed Dec 06, 2023 5:13 am, edited 1 time in total.

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Basic Pattern Maker [ Windows & Linux ]

Post by John Hyslop » Mon Sep 18, 2023 10:05 am

OK I know you’re all just itching to try something different with our “Basic Pattern Maker” :lol:
.
Well how about this then, Herringbone patterns “limited to ratios with lengths being dividable by the widths”.
.
Basic Pattern Maker has a grid limit of 50 so the largest ratio will be 1:25 “the grid needs to always be at least double the ratio”.
Most “not all” commercial paving bricks and boards have common ratios, the reason being is they are easier to work with and they line up with walls in rooms and patios perfectly where uneven ratios don’t.
.
BPM-Blank.png
BPM-Blank.png (188.71 KiB) Viewed 14481 times
.
HerringBone-Examples.png
HerringBone-Examples.png (95.43 KiB) Viewed 14489 times
.
And before anyone says anything... sure you can do it at 90deg instead of 45.. but it's a lot easier doing at 45deg if you stick with the rules above :)
.
HerringBone-90deg.png
HerringBone-90deg.png (18.14 KiB) Viewed 14489 times
.
Happy Hatching :)
.
Cheers
John & Pete
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Basic Pattern Maker [ Windows & Linux ]

Post by John Hyslop » Tue Sep 26, 2023 5:17 am

Hi All
Here's another hatch pattern that can be made with out "Basic Pattern Maker"
For all you "Chevron" fans out there :lol:

Happy Hatching
John & Pete..
PS Use different size even number grids for longer or shorter boards :wink:
.
BPM-Chevron.png
BPM-Chevron.png (73.28 KiB) Viewed 14149 times
Last edited by John Hyslop on Mon Dec 04, 2023 5:23 am, edited 1 time in total.
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Basic Pattern Maker [ Windows & Linux ]

Post by John Hyslop » Fri Nov 10, 2023 2:56 am

Hi All

Well PeteVick has been very busy updating our Basic Pattern Maker. :wink:

The main additions are as follows:-
There's a new zoom function with buttons + mouse scroll to zoom.
A "New Sketch" button has been added.
Grid Limit has been increased to 100x100.
Plus lots more "see the information and help for more details".
Note:- When zooming the grid lines may look pixelated and uneven,this is because
the grid lines are raster based, it has no affect on the saved sketch or pattern,
they will still look nice and neat. :)
.
BPM-1.4.0.gif
BPM-1.4.0.gif (2.37 MiB) Viewed 10256 times
.
To uninstall previous deb versions type this in the terminal:-
sudo apt remove basic-pattern-maker

Information,ReloadPatterns script and 76 sample BPM-Sketches are included in the zip files. :wink:
.
BPM - V1.4.0 - Setup-Windows.zip
(2.07 MiB) Downloaded 282 times
BPM - V1.4.0 - Linux 64bit Deb.zip
(1.36 MiB) Downloaded 266 times
BPM - V1.4.0 - Linux 32bit Deb.zip
(1.31 MiB) Downloaded 258 times
The AppImage is experimental and may not run on some flavours of Linux but most I've tested on have been fine.
BPM - V1.4.0 - Linux 64bit AppImage.zip
(2.63 MiB) Downloaded 268 times
.
If you like this application you might like my Basic Hatch Tool see link below:-
https://qcad.org/rsforum/viewtopic.php? ... =45#p39904


.
Cheers
John & Pete
Happy Hatching :D
Last edited by John Hyslop on Mon Dec 04, 2023 5:24 am, edited 1 time in total.
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Basic Pattern Maker [ Windows & Linux ]

Post by John Hyslop » Mon Dec 04, 2023 3:30 am

Hi All

There's not many 32bit AppImages around these days but Pete and I were discussing whether to release one or not..🤔
So for all of you that don't have the luxury of 64bit systems or are simply happy with your 32bit system here's a build
for you, it has everything included as the above posts eg. Documentation,samples,etc.
'
If this gets much attention we'll add this to all the next uploads/releases.
.
BPM - V1.4.0 - Linux i386 AppImage.zip
(2.5 MiB) Downloaded 223 times
.
Happy Hatching :D
John Hyslop & PeteVick
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Basic Pattern Maker [ Windows & Linux ]

Post by John Hyslop » Sun Jan 28, 2024 3:52 am

Hi All

Was just playing around today with this very basic pattern , it's a good example of the use of lines and points in BPM..
Here's a copy of the sketch file [ *.bpmlc ]
bpm-cross-02.bpmlc.zip
(1.1 KiB) Downloaded 132 times
bpm-cross-02.png
bpm-cross-02.png (143.22 KiB) Viewed 3567 times
Happy Hatching :D
Cheers
John & Pete
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”