Home › Forums › General discussions › Use fill from surface in 2D-symbol?
- This topic has 9 replies, 3 voices, and was last updated 4 years, 6 months ago by Mats Knutsson.
-
AuthorPosts
-
-
April 17, 2020 at 13:04 #18697Mats KnutssonParticipant
Hi,
As always I understand nothing. I scripted a simple floor drain and I can’t manage to get the fill orientation to follow the object instead of the global origin. I tried poly2{2} but couldn’t figure it out. I tried project2{2} but couldn’t figure that one out either. I just suck at this. Please help me with an example script. I lack examples intensely when it comes to the gdl documentation… or I’m just to stupid to understand.
/MatsAttachments:
-
April 17, 2020 at 15:49 #18699James MurrayParticipant
POLY2_B{2} can do it. There are parameters for fill origin and angle. You need add 8 to the frame_fill to get it to respect the local origin.
James M
-
April 18, 2020 at 02:59 #18700David Shorter44Participant
hi Mats
Just out of interest is the fill symbolic or a real representation of the grill pattern?ArchiCAD 4.1-22
MacBook RetinaDisplay
16Gb RAM 500Gb SSD
BIMXdocs-
April 18, 2020 at 10:42 #18701Mats KnutssonParticipant
A symbolic pattern. Should be diagonal (45 degrees) to the object. I use a regular ANSI fill. Will try to figure out how to code it according to James’s tips. I just would like to see a code example to learn from.
-
-
April 18, 2020 at 13:23 #18702David Shorter44Participant
Here is a script, 8 sets the rotation to match the rotation of the object
a/2, b/2 puts the origin of fill at the centre of the object.
pen penAttribute_1
fill fillAttribute_1
poly2_b{5} 5, 2, 0, 8, penAttribute_1, penAttribute_2,
a/2, b/2, 1, 0, 0, 1, 0,
0, 0, 1,
a, 0, 1,
a, b, 1,
0, b, 1,
0, 0, 1the screenshot shows the parameters
ArchiCAD 4.1-22
MacBook RetinaDisplay
16Gb RAM 500Gb SSD
BIMXdocs-
April 19, 2020 at 18:45 #18705Mats KnutssonParticipant
Rally thank you! Works like charm. Now for the definition of B{5} to understand what’s going on.
-
April 19, 2020 at 18:45 #18706Mats KnutssonParticipant
Really thank you! Works like charm. Now for the definition of B{5} to understand what’s going on.
-
-
April 18, 2020 at 13:31 #18703David Shorter44Participant
missing screenshot attached
Attachments:
ArchiCAD 4.1-22
MacBook RetinaDisplay
16Gb RAM 500Gb SSD
BIMXdocs -
April 20, 2020 at 04:41 #18709David Shorter44Participant
Mats
I have to confess I cheated.
I drew a fill block on the floor plan and saved it as a object.
I created it at the origin to a known size (600×600) using a fill geometry ‘linked to the fill origin.
I then selected it and saved it as an object, opened the object and edited the 2D script.
I can go into more detail if that would help but I’m not sure how much you know.
Let me know if you need more guidance.
Hope this helpsArchiCAD 4.1-22
MacBook RetinaDisplay
16Gb RAM 500Gb SSD
BIMXdocs -
April 22, 2020 at 07:01 #18717Mats KnutssonParticipant
This is my master piece (huge irony)
https://youtu.be/3MtsG13hSlMI used a GOSUB for the fills in 2D but need to change to a fill that allows me to control the outline colour.
The 3D is pure cheat in that sense I have three different “complete” geometries (GOSUB). I guess the holes in the slab can be done with a FOR … NEXT loop but that’s for later.
Thanks for all kind help?Next venture is UI.
-
-
AuthorPosts
- The forum ‘General discussions’ is closed to new topics and replies.