Page 2 of 2

Re: Updated beta 0.41 FlexPainter beta 0.34

Posted: Tue Oct 15, 2019 6:47 am
by pietro_72_
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?

Re: Updated beta 0.41 FlexPainter beta 0.34

Posted: Tue Oct 15, 2019 7:04 am
by CVH
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

Re: Updated beta 0.41 FlexPainter beta 0.34

Posted: Wed Oct 16, 2019 9:00 pm
by pietro_72_
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.

Re: Updated beta 0.41 FlexPainter beta 0.34

Posted: Thu Oct 17, 2019 12:17 am
by CVH
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

Revision Clouds by FlexPainter

Posted: Fri Oct 18, 2019 9:53 am
by CVH
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

Re: Revision Clouds by FlexPainter

Posted: Wed Aug 26, 2020 9:00 pm
by petevick
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.

FlexPainter Updated beta 0.42e

Posted: Sat Aug 29, 2020 3:31 pm
by CVH
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
(369.31 KiB) Downloaded 2445 times
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

Re: Updated beta 0.41 FlexPainter beta 0.34

Posted: Sat Aug 29, 2020 4:13 pm
by petevick
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:

Re: Updated beta 0.41 FlexPainter beta 0.34

Posted: Sat Aug 29, 2020 4:30 pm
by CVH
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

Re: [Updated beta 0.42e] FlexPainter beta 0.34

Posted: Sat Sep 05, 2020 3:33 am
by JimWOz
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