[Updated beta 0.42e] FlexPainter beta 0.34
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
-
- Full Member
- Posts: 83
- Joined: Fri Apr 17, 2015 6:40 am
- Location: http://creativitainformaticart.altervista.org
Re: Updated beta 0.41 FlexPainter beta 0.34
Hi, when I have time I would like to try your program, but to work it must be extracted all the content of the zip in the path
QCAD\scripts\Misc\Examples\MathExamples\
Does it work if I put your program files in a [Flexpainte] folder?
QCAD\scripts\Misc\Examples\MathExamples\
Does it work if I put your program files in a [Flexpainte] folder?
-
- Premier Member
- Posts: 4872
- Joined: Wed Sep 27, 2017 4:17 pm
Re: Updated beta 0.41 FlexPainter beta 0.34
Hello,
No,
FlexPainter is what I think is called an AddOn.
The Qcad folder structure is necessary.
Qcad expects FlexPainter.js to be in a sub folder FlexPainter.
As it originated as a Math example this has to be a sub folder of MathExamples.
Regards,
CVH
No,
FlexPainter is what I think is called an AddOn.
The Qcad folder structure is necessary.
Qcad expects FlexPainter.js to be in a sub folder FlexPainter.
As it originated as a Math example this has to be a sub folder of MathExamples.
Regards,
CVH
-
- Full Member
- Posts: 83
- Joined: Fri Apr 17, 2015 6:40 am
- Location: http://creativitainformaticart.altervista.org
Re: Updated beta 0.41 FlexPainter beta 0.34
Beautiful, strong, complex your program
I don't use these forms much, but you never know
If in case I could also take inspiration from your code if you don't mind?
Good job.
I don't use these forms much, but you never know
If in case I could also take inspiration from your code if you don't mind?
Good job.
-
- Premier Member
- Posts: 4872
- Joined: Wed Sep 27, 2017 4:17 pm
Re: Updated beta 0.41 FlexPainter beta 0.34
Thanks,
Me neither,
No I don't mind.
As it is already part of the lastest Qcad snapshot, its free to use.
As always we have to read the fine print.
I hope my documented struggles at least inspire others in scripting.
My knowledge of QT, Javascript or the Qcad project was non-existent.
What if we used the base-line to cast:
> pebble stones under it, sand, asfalt
> gras above it
(Width = depth or height)
....
Regards,
CVH
PS:
Writing this reply remembered to include
reference to OrthogonalProjections.js Topic
Me neither,

No I don't mind.
As it is already part of the lastest Qcad snapshot, its free to use.
As always we have to read the fine print.
I hope my documented struggles at least inspire others in scripting.
My knowledge of QT, Javascript or the Qcad project was non-existent.
What if we used the base-line to cast:
> pebble stones under it, sand, asfalt
> gras above it
(Width = depth or height)
....
Regards,
CVH
PS:

Writing this reply remembered to include
reference to OrthogonalProjections.js Topic
-
- Premier Member
- Posts: 4872
- Joined: Wed Sep 27, 2017 4:17 pm
Revision Clouds by FlexPainter
In respons to:
https://qcad.org/rsforum/viewtopic.php?t=6131
https://qcad.org/rsforum/viewtopic.php?t=3519
https://qcad.org/rsforum/viewtopic.php?t=846
Coded some clouds painters.
Will be included in a next release.
Regards.
CVH
https://qcad.org/rsforum/viewtopic.php?t=6131
https://qcad.org/rsforum/viewtopic.php?t=3519
https://qcad.org/rsforum/viewtopic.php?t=846
Coded some clouds painters.
Will be included in a next release.
Regards.
CVH
- Attachments
-
- RevisionCloudTest.dxf
- (133.63 KiB) Downloaded 3657 times
-
- CloudExample.png (35.18 KiB) Viewed 40217 times
- petevick
- Premier Member
- Posts: 413
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Revision Clouds by FlexPainter
Was this ever included ? I can't see a cloud option in the Painter options dialog box.
Pete Vickerstaff
Linux Mint 21.3 Cinnamon, Qcad Pro 3.31.1
Linux Mint 21.3 Cinnamon, Qcad Pro 3.31.1
-
- Premier Member
- Posts: 4872
- Joined: Wed Sep 27, 2017 4:17 pm
FlexPainter Updated beta 0.42e
Flexpainter Beta v0.42e Update
... or 'complex line types on steroids'
.. but just a minor update.
.and long overdue! (Riverbanks
).
CE bug: Not functional.
FlexPainter relies vastly on splines and other PRO resources.
Without PROTOOLS present it should be disabled to load. Not tested.
I'll have to see how lean it can be made.

Fixed some minor issues, typos and so on.
The scope mystery isn't tackled, the script is functional 'as is'.
Not verbose, a lot more of the details are spit out on the command history.
A vast amount of info is textual included in the script file itself.
Enhanced the painter definitions types:
Local & Global Poly, now both with bulging.
Castings can be done on a sublayer of the base entity.
Know issue: This can interfere with casting in group.
It will take some more 'Undo's' to undo.
Revised the painter sets and added some.
+ Riverbanks 1:1 & 2:3, 3 types each.
+ Revision Clouds, 7 types.
Renewed & added all preview icons of these painter sets.
(The hardest part)
Revision Clouds bulging relies on the actual casted distance between points.
On non uniform base lines this looks rather 'at random' with a theme.

Most Painters now have a Begin and End -Apex.
- Artistics.
- Pointing V-shape extrusions for Revision Clouds.
Drag the top node to point where you want it to point.
- Voids, in general 1/2 of what makes more sense: the length or the step-size.
An apex is considered as something intentional.
A void as Apex doesn't merge with any exposed void of the chain for global alignment or only an extra painter .
This feature isn't yet tested in full.
Remark that apexes are not applicable on <geometric closed & near continuous forms>.
for Revision Clouds with V-pointers use:
- a non-continuous form (V @ begin), preferable geometric closed.
- both apexes
- dynamically scale
(# Note that FlexPainter Beta v0.42e is included in a recent standard installation of QCAD #)
This zip package with version 0.42e is intended to be extracted to:
... QCAD\scripts\Misc\Examples\MathExamples\FlexPainter\
Included is a subfolder with the icons.
Included is a subfolder 'FlexPainterTemplates' with 2 dxf drawings.
- One is a tutorial on how the painter is constructed, and one with a bunch of test cases.
- On a win system it might be better to move these dxf files out of the protected OS portion as Admin.
Andrew may include this in a newer release or snaptshot.
Immediate short update:
- Copy over the .js and the .ui file.
- Replace the Icon folder.
- Boot or Reboot QCAD
Regards,
CVH
... or 'complex line types on steroids'

.. but just a minor update.
.and long overdue! (Riverbanks


CE bug: Not functional.

FlexPainter relies vastly on splines and other PRO resources.
Without PROTOOLS present it should be disabled to load. Not tested.
I'll have to see how lean it can be made.

Fixed some minor issues, typos and so on.
The scope mystery isn't tackled, the script is functional 'as is'.
Not verbose, a lot more of the details are spit out on the command history.
A vast amount of info is textual included in the script file itself.


Enhanced the painter definitions types:
Local & Global Poly, now both with bulging.

Castings can be done on a sublayer of the base entity.
Know issue: This can interfere with casting in group.
It will take some more 'Undo's' to undo.


Revised the painter sets and added some.
+ Riverbanks 1:1 & 2:3, 3 types each.
+ Revision Clouds, 7 types.
Renewed & added all preview icons of these painter sets.
(The hardest part)
Revision Clouds bulging relies on the actual casted distance between points.
On non uniform base lines this looks rather 'at random' with a theme.

Most Painters now have a Begin and End -Apex.
- Artistics.
- Pointing V-shape extrusions for Revision Clouds.
Drag the top node to point where you want it to point.
- Voids, in general 1/2 of what makes more sense: the length or the step-size.
An apex is considered as something intentional.
A void as Apex doesn't merge with any exposed void of the chain for global alignment or only an extra painter .
This feature isn't yet tested in full.
Remark that apexes are not applicable on <geometric closed & near continuous forms>.

- a non-continuous form (V @ begin), preferable geometric closed.
- both apexes
- dynamically scale
(# Note that FlexPainter Beta v0.42e is included in a recent standard installation of QCAD #)
This zip package with version 0.42e is intended to be extracted to:
... QCAD\scripts\Misc\Examples\MathExamples\FlexPainter\
Included is a subfolder with the icons.
Included is a subfolder 'FlexPainterTemplates' with 2 dxf drawings.
- One is a tutorial on how the painter is constructed, and one with a bunch of test cases.
- On a win system it might be better to move these dxf files out of the protected OS portion as Admin.
Andrew may include this in a newer release or snaptshot.
Immediate short update:
- Copy over the .js and the .ui file.
- Replace the Icon folder.
- Boot or Reboot QCAD
Regards,
CVH
Last edited by CVH on Tue Aug 13, 2024 9:56 am, edited 7 times in total.
- petevick
- Premier Member
- Posts: 413
- Joined: Tue May 19, 2020 9:34 am
- Location: North Norfolk coast UK
Re: Updated beta 0.41 FlexPainter beta 0.34
Flexpainter really is a work of art CVH and a credit to your scripting skills. It also shows just how powerful Qcad is, and can be, with clever scripts like this.
I could play with it all day, the curtain rope fascinates me

I could play with it all day, the curtain rope fascinates me


Pete Vickerstaff
Linux Mint 21.3 Cinnamon, Qcad Pro 3.31.1
Linux Mint 21.3 Cinnamon, Qcad Pro 3.31.1
-
- Premier Member
- Posts: 4872
- Joined: Wed Sep 27, 2017 4:17 pm
Re: Updated beta 0.41 FlexPainter beta 0.34
Thanks,
Curtain rope is a proto ... and was 'the' proto.
It has two distinct apexes that you can not swap.
Intended is to make a hard and a soft version.
I have changed the first topic title just now.
Regards,
CVH
Curtain rope is a proto ... and was 'the' proto.
It has two distinct apexes that you can not swap.
Intended is to make a hard and a soft version.
I have changed the first topic title just now.
Regards,
CVH
-
- Newbie Member
- Posts: 5
- Joined: Sat Jul 25, 2020 2:44 pm
- Location: Australia
Re: [Updated beta 0.42e] FlexPainter beta 0.34
CVH, - Many thanks for FlexPainter.
I will use auxiliary lines to frame a drawing revision area, then apply FlexPainter to this selection to create the revision cloud surrounding the change. Auxiliary lines layer then turned off for a presentation print or pdf output.
Note to all that FlexPainter 0.42e is included in QCAD 3.25.1 default installation.
Misc/Script Examples/Mathematics/FlexPainter
I will use auxiliary lines to frame a drawing revision area, then apply FlexPainter to this selection to create the revision cloud surrounding the change. Auxiliary lines layer then turned off for a presentation print or pdf output.
Note to all that FlexPainter 0.42e is included in QCAD 3.25.1 default installation.
Misc/Script Examples/Mathematics/FlexPainter
Mac OS 10.15.7 on 2019 MacBook Pro 16.
QCADPro 3.27.1
from 40+ south.
QCADPro 3.27.1

-
- Newbie Member
- Posts: 3
- Joined: Tue Aug 30, 2022 5:14 pm
Re: [Updated beta 0.42e] FlexPainter beta 0.34
It's been some years since I've used Flexpainter - I'm obviously missing something basic - but no matter what I do I keep getting the error message Nothing Casted command terminated.
I'm using QCAD 3.30.1 BTW
I'm just trying to create a revision cloud around a selected object.
-
- Premier Member
- Posts: 4872
- Joined: Wed Sep 27, 2017 4:17 pm
Re: [Updated beta 0.42e] FlexPainter beta 0.34
Hi,
Thanks for using FlexPainter.
Your painter width is set to 999mm also meaning that 1 painter set is scaled up to be 2220mm long.
FlexPainter won't cast anything below 3 copies of a painter set, the upper limit is 9999 copies.
The selected entity in the example drawing is about 325mm long.
I know that it is an ambiguous used terminology in the beta version, but clearing "Verbose" would list more details on the Command History.
CVH
Thanks for using FlexPainter.
Your painter width is set to 999mm also meaning that 1 painter set is scaled up to be 2220mm long.
FlexPainter won't cast anything below 3 copies of a painter set, the upper limit is 9999 copies.
The selected entity in the example drawing is about 325mm long.
I know that it is an ambiguous used terminology in the beta version, but clearing "Verbose" would list more details on the Command History.
- Version Beta 0.42e
Painter set: RevisionCloud_L
Width: -999
Length: 2220
Stepsize: 2220
- - - = * = - - -
Ellipse Too short. Skipped!
Nothing casted!? Command terminated
CVH
-
- Newbie Member
- Posts: 3
- Joined: Tue Aug 30, 2022 5:14 pm
Re: [Updated beta 0.42e] FlexPainter beta 0.34
Hi CVH
Thanks, sorry for being so dense. I've also worked out now (relearned
) that I have to draw a shape around the object I want to highlight and then flexpainter converts that shape into a revision cloud, and the flip option will determine what side of the object line the cloud bumps appear on.
(I'm posting these verbose instructions here so that they will be here for my future reference.)
Thanks, sorry for being so dense. I've also worked out now (relearned

(I'm posting these verbose instructions here so that they will be here for my future reference.)