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

list of line types and fills?

SeaGeoff
Ace
Howdy,
first let me say that after two years with AC I’m am no longer a GDL virgin! I tried to hold out as long as possible but just couldn’t resist the urge to modify some parts. Now I’m in trouble as I’ve already spent a few late nights tweaking code

My thrust at the moment is refining office standards, so I’m tweaking bugs and markers or just building them from scratch. As I explained in a recent topic one thing I need for new employees is a graphic chart showing the line types and fills we have as part of our template. But I cannot find a function that returns the number of fills, line types, materials, etc. so I can script a loop to draw each one. Is this possible?

Thanks in advance.
Regards,
Geoff Briggs
I & I Design, Seattle, USA
AC7-28, M1 Mac, OS 15.x
Graphisoft Insider's Panel, Beta Tester
18 REPLIES 18
Anonymous
Not applicable
Geoff,

What I do is just create a parameter that lets me set the number of times to reenter the loop.

I have found that even if the number is larger than the number of available fills, line types, etc. it's not a problem.

I am attaching a little thing I made (nothing fancy) to show all the fills in a project to demonstrate the idea.
SeaGeoff
Ace
Way cool Matthew, thanks. Best way to learn is dissect other people's code.

So I guess there is no function that returns the number of fills, materials, or line types? Seems an oversight.
Regards,
Geoff Briggs
I & I Design, Seattle, USA
AC7-28, M1 Mac, OS 15.x
Graphisoft Insider's Panel, Beta Tester
Karl Ottenstein
Moderator
Matthew wrote:
I am attaching a little thing I made (nothing fancy) to show all the fills in a project to demonstrate the idea.
Unzipped fine, but not recognized as a library part on Windows (in 8.1 or 9.0) ... is it just me?

Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Thanks, Matthew. Very interesting.
Perfect even until small details. Fill names display on different lines,
so they don't overlap with long names. Excellent.
Works correctly for me on Mac.
Anonymous
Not applicable
Karl wrote:
Matthew wrote:
I am attaching a little thing I made (nothing fancy) to show all the fills in a project to demonstrate the idea.
Unzipped fine, but not recognized as a library part on Windows (in 8.1 or 9.0) ... is it just me?

Karl
Strange, I thought that cross platform thing was handled years ago (version 6?). You can always just grab the text with any text editor and paste it into a blank 2D script. I am attaching a snapshot of the parameter window if you feel like going to all the trouble. I'll see if I can check it out on my ThinkPad later.

BTW: A cool thing you can do with this toy is explode the object and copy/paste (or modulize) fills from different files so you can sort out the ones you like, organize them by type, and save modules for later. ScrapIt Pro also works great for making a catalog of fill patterns.
Karl Ottenstein
Moderator
"Matthew LohdenStrange, I thought that cross platform thing was handled years ago (version 6?). [/quote wrote:


It was some strange unzip thing. I downloaded again, unzipped again, and the (slightly larger) gsm works fine now!

Sorry for crying wolf.

Very handy object, and a nice concise example of using GDL, Matthew.

Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Karl wrote:
It was some strange unzip thing. I downloaded again, unzipped again, and the (slightly larger) gsm works fine now!

Sorry for crying wolf.

Very handy object, and a nice concise example of using GDL, Matthew.

Karl
Thanks for the update. It saves me a trip back to Win2K (for now).

Glad you like it, and thanks for the compliment.
Anonymous
Not applicable
Now that you got me going...

I couldn't resist a little tweaking to the part to avoid the inconvenience of having to guess (or look up, or count) how many fills are in the project.

Now it just uses the available area, and you can just stretch it until you have all the fills. (Just don't make it smaller than 1 unit high or wide. I didn't put in the error correcting code and it will create a divide by zero error.)
Jochen Suehlo
Moderator
In the German Library of AC 81 is something like the object of Matthew.
It is also available for Pens and Linetypes. You can find the files appended.
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de