[Updated beta 0.42e] FlexPainter beta 0.34

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.

pietro_72_
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

Post by pietro_72_ » Tue Oct 15, 2019 6:47 am

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?

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

Re: Updated beta 0.41 FlexPainter beta 0.34

Post by CVH » Tue Oct 15, 2019 7:04 am

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

pietro_72_
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

Post by pietro_72_ » Wed Oct 16, 2019 9:00 pm

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.

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

Re: Updated beta 0.41 FlexPainter beta 0.34

Post by CVH » Thu Oct 17, 2019 12:17 am

Thanks,
Me neither, :wink:
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

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

Revision Clouds by FlexPainter

Post by CVH » Fri Oct 18, 2019 9:53 am

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
Attachments
RevisionCloudTest.dxf
(133.63 KiB) Downloaded 3657 times
CloudExample.png
CloudExample.png (35.18 KiB) Viewed 40215 times

User avatar
petevick
Premier Member
Posts: 413
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Revision Clouds by FlexPainter

Post by petevick » Wed Aug 26, 2020 9:00 pm

CVH wrote:
Fri Oct 18, 2019 9:53 am
.......Coded some clouds painters.
Will be included in a next release.

Regards.
CVH
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

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

FlexPainter Updated beta 0.42e

Post by CVH » Sat Aug 29, 2020 3:31 pm

Flexpainter Beta v0.42e Update
... or 'complex line types on steroids' :wink:
.. but just a minor update.
.and long overdue! (Riverbanks :oops: ).

:!:
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. :wink:

:!:
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. :wink:

:!:
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>.
:arrow: for Revision Clouds with V-pointers use:
- a non-continuous form (V @ begin), preferable geometric closed.
- both apexes
- dynamically scale

FlexPainter 42e.zip
Flexpainter Beta 0.42e update (2720 downloads as of 12/08/2024)
(369.31 KiB) Downloaded 3543 times
(# 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.

User avatar
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

Post by petevick » Sat Aug 29, 2020 4:13 pm

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 :lol: :lol:
Pete Vickerstaff
Linux Mint 21.3 Cinnamon, Qcad Pro 3.31.1

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

Re: Updated beta 0.41 FlexPainter beta 0.34

Post by CVH » Sat Aug 29, 2020 4:30 pm

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

JimWOz
Newbie Member
Posts: 5
Joined: Sat Jul 25, 2020 2:44 pm
Location: Australia

Re: [Updated beta 0.42e] FlexPainter beta 0.34

Post by JimWOz » Sat Sep 05, 2020 3:33 am

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
Mac OS 10.15.7 on 2019 MacBook Pro 16.
QCADPro 3.27.1

:) from 40+ south.

TrevorW
Newbie Member
Posts: 3
Joined: Tue Aug 30, 2022 5:14 pm

Re: [Updated beta 0.42e] FlexPainter beta 0.34

Post by TrevorW » Mon Aug 12, 2024 6:27 am

Screenshot 2024-08-12 132243.png
Screenshot 2024-08-12 132243.png (78.84 KiB) Viewed 22168 times
Hi

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.

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

Re: [Updated beta 0.42e] FlexPainter beta 0.34

Post by CVH » Mon Aug 12, 2024 8:11 am

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.
  • Version Beta 0.42e
    Painter set: RevisionCloud_L
    Width: -999
    Length: 2220
    Stepsize: 2220

    - - - = * = - - -
    Ellipse Too short. Skipped!
    Nothing casted!? Command terminated
Regards,
CVH

TrevorW
Newbie Member
Posts: 3
Joined: Tue Aug 30, 2022 5:14 pm

Re: [Updated beta 0.42e] FlexPainter beta 0.34

Post by TrevorW » Tue Aug 20, 2024 3:27 am

Hi CVH

Thanks, sorry for being so dense. I've also worked out now (relearned :mrgreen: ) 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.)

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”