list of line types and fills?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-21 11:16 PM
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.
Geoff Briggs
I & I Design, Seattle, USA
AC7-28, M1 Mac, OS 15.x
Graphisoft Insider's Panel, Beta Tester
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-21 11:46 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-24 04:23 AM
So I guess there is no function that returns the number of fills, materials, or line types? Seems an oversight.
Geoff Briggs
I & I Design, Seattle, USA
AC7-28, M1 Mac, OS 15.x
Graphisoft Insider's Panel, Beta Tester

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-24 08:21 PM
Matthew wrote:Unzipped fine, but not recognized as a library part on Windows (in 8.1 or 9.0) ... is it just me?
I am attaching a little thing I made (nothing fancy) to show all the fills in a project to demonstrate the idea.
Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-24 09:33 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-24 09:56 PM
Karl wrote: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.Matthew wrote:Unzipped fine, but not recognized as a library part on Windows (in 8.1 or 9.0) ... is it just me?
I am attaching a little thing I made (nothing fancy) to show all the fills in a project to demonstrate the idea.
Karl
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-24 10:05 PM
"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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-24 10:10 PM
Karl wrote:Thanks for the update. It saves me a trip back to Win2K (for now).
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
Glad you like it, and thanks for the compliment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-24 11:26 PM
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.)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-09-27 11:48 AM
It is also available for Pens and Linetypes. You can find the files appended.
GDL object creation: b-prisma.de