Graphic2D Object with mini script and variable

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
chakkree
Posts: 327
Joined: Tue Jun 30, 2015 12:58 am
Location: Bangkok Thailand

Re: Graphic2D Object with mini script and varriable

Post by chakkree »

johnwang wrote: Sat Jul 04, 2020 5:34 am I want the top two lines in yellow. Something like this:

Code: Select all

tCommand2d=['WALLext; 0,0;  1000 ,250; color1=(1,0,0), color2=(1,1,0)' ]
Can you show a plan(image) with external wall, for example?
User avatar
johnwang
Veteran
Posts: 1382
Joined: Sun Jan 27, 2019 12:41 am

Re: Graphic2D Object with mini script and varriable

Post by johnwang »

just this, but the top two lines need to be in yellow.
ext.jpg
ext.jpg (8.33 KiB) Viewed 1302 times
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
chakkree
Posts: 327
Joined: Tue Jun 30, 2015 12:58 am
Location: Bangkok Thailand

Re: Graphic2D Object with mini script and varriable

Post by chakkree »

johnwang wrote: Sat Jul 04, 2020 6:06 am just this, but the top two lines need to be in yellow.

ext.jpg
Like This? But pack to one-line command.

CAD2D_COIN_09_WallTimber.png
CAD2D_COIN_09_WallTimber.png (188.11 KiB) Viewed 1295 times
User avatar
johnwang
Veteran
Posts: 1382
Joined: Sun Jan 27, 2019 12:41 am

Re: Graphic2D Object with mini script and varriable

Post by johnwang »

Yes, so the bottom two lines and hatch must use base color?
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Graphic2D Object with mini script and varriable

Post by carlopav »

chakkree wrote: Sat Jul 04, 2020 2:49 am *** Not compete!, for test only. :D
Hei! that's seriously cool!!
follow my experiments on BIM modelling for architecture design
User avatar
chakkree
Posts: 327
Joined: Tue Jun 30, 2015 12:58 am
Location: Bangkok Thailand

Re: Graphic2D Object with mini script and varriable

Post by chakkree »

Hatch Pattern in inventor. Try to use image pattern to use Hatch command.
OK!, Keyword for search. [Texture2, TextureCoordinate2, textureCoordIndex]

Thank to @realthunder , https://forum.freecadweb.org/viewtopic. ... 12#p414012
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Graphic2D Object with mini script and varriable

Post by Kunda1 »

Whatever is going on in this thread is seriously cool 8-)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
chakkree
Posts: 327
Joined: Tue Jun 30, 2015 12:58 am
Location: Bangkok Thailand

Re: Graphic2D Object with mini script and varriable

Post by chakkree »

Paste for an idea. Maybe make a rectangle footing object that can show 3d model and 2D plan and 2D side view.

CAD2D_COIN_10_Footing.png
CAD2D_COIN_10_Footing.png (233.74 KiB) Viewed 1149 times
ABeton
Posts: 150
Joined: Tue Sep 03, 2019 6:39 pm

Re: Graphic2D Object with mini script and variable

Post by ABeton »

Just to ask if there was any progress with this? It was a very interesting thread :)
Post Reply