Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Projecting a fill?????

Red
Advocate
I have an object that the 2d view is projected. This maybe a stupid question. What I want to do is place a fill in 2d view, so can I fill read off the projection to make it an easy fix? I don't believe it’s possible but I wanted to here it from some gurus.
Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz
7 REPLIES 7
Djordje
Ace
Red wrote:
What I want to do is place a fill in 2d view, so can I fill read off the projection to make it an easy fix? I don't believe it’s possible but I wanted to here it from some gurus.
It is possible, using the PROJECT2 codes in the 2D script.

Have to check exactly what they are, and will come back before someone else beats me to it Don't have the docs handy ...

However, expect long regen times.
Djordje



ArchiCAD since 4.55 ... 1995
HP Omen
Dwight
Newcomer
THE 2D SCRIPT SHOULD READ:

PROJECT2 3,270,2

EXCLAIM OUT THE REST OF THE CODE, IF ANY.


FROM PAGE 125 OF THE GDL REFERENCE
Dwight Atkinson
Red
Advocate
Normal Fill

if rf then
add2 0,-b/2
set fill JF
poly2_b 5, 2, JP, 91,
0-O,0,1,
a-T/2,0,1,
a-T/2,b,1,
0-O,b,1,
0-O,0,1
endif

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Projected FIll

I'm guessing a projected fill would be scripted like this??

if rf then
add2 0,-b/2
set fill JF
poly2_b 5, 2, JP, 91,
PROJECT2 3, 270, 2
endif

Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz
Anonymous
Not applicable
Red wrote:
Normal Fill

if rf then
add2 0,-b/2
set fill JF
poly2_b 5, 2, JP, 91,
0-O,0,1,
a-T/2,0,1,
a-T/2,b,1,
0-O,b,1,
0-O,0,1
endif

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Projected FIll

I'm guessing a projected fill would be scripted like this??

if rf then
add2 0,-b/2
set fill JF
poly2_b 5, 2, JP, 91,
PROJECT2 3, 270, 2
endif

No,

Just put in

PROJECT2 3, 270,2

no poly2 is needed.
Anonymous
Not applicable
I don't think it's possible while we don't know the 2D shape.
Djordje
Ace
Wolf wrote:
I don't think it's possible while we don't know the 2D shape.
PROJECT2 does the 2D projection of the shape(s) defined in the 3D script.
Djordje



ArchiCAD since 4.55 ... 1995
HP Omen
LiHigh
Newcomer
Just use:
PROJECT2{2} projection_code, angle, method
[, backgroundColor, fillOrigoX,
fillOrigoY, filldirection]
Howard Phua

Win 10, Archicad 19 INT