Has anyone programmed this object?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-03-24 08:22 PM
‎2009-03-24
08:22 PM
There are some very nice objects that "tables" and displays all pens, fills and materials used in an actual project. I don't know who did them but I was inspired to create a similar thing that draws a line for every layer and also displays the layer name. The purpose is of course to calibrate and visualize the bylayer dwg-export. I can't do it so I wonder if any of you GDL-gurus has done it?
Regards,
Mats
AC 25 SWE Full
HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-03-24 10:12 PM
‎2009-03-24
10:12 PM
I did one of those objects, in the past, for pen colors & width. But pens are a special kind of Attribute, with a fixed number (always 255 + 0 & -1).
I don't think the GDL can access to the layer names... moreover, a single GDL object is always placed on a single layer...! Admitting to create a library part that knows on wich layer it have to go, you need to place as many of them as the number of layers in jour project.
I don't think the GDL can access to the layer names... moreover, a single GDL object is always placed on a single layer...! Admitting to create a library part that knows on wich layer it have to go, you need to place as many of them as the number of layers in jour project.
_________________
--Roberto Corona--
www.archiradar.com
AC18 - ITA full on Win10
_________________
_________________
--Roberto Corona--
www.archiradar.com
AC18 - ITA full on Win10
_________________
_________________

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-03-25 02:36 AM
‎2009-03-25
02:36 AM
GLOB_LAYER will return the name of the current layer that an object is on.
But you would need to place this object on every layer.
I'm not clear on what you are trying to do with the line for each layer as layers do not have default line types.
Barry.
But you would need to place this object on every layer.
I'm not clear on what you are trying to do with the line for each layer as layers do not have default line types.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-03-25 09:09 PM
‎2009-03-25
09:09 PM
rocorona wrote:Thanks!
I did one of those objects, in the past, for pen colors & width. But pens are a special kind of Attribute, with a fixed number (always 255 + 0 & -1).
I don't think the GDL can access to the layer names... moreover, a single GDL object is always placed on a single layer...! Admitting to create a library part that knows on wich layer it have to go, you need to place as many of them as the number of layers in jour project.
For your anwer and your efforts! Yes I need to place one line for every layer...it's not a big deal to do this manually but it would have been nice with an automated drafting-slave.
AC 25 SWE Full
HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-03-25 09:16 PM
‎2009-03-25
09:16 PM
Barry wrote:Thanks Barry,
GLOB_LAYER will return the name of the current layer that an object is on.
But you would need to place this object on every layer.
I'm not clear on what you are trying to do with the line for each layer as layers do not have default line types.
Barry.
I think I can crack that one. As you say, line types doesn't matter really. It could be whatever line since it' bylayer export. One line for each layer and then the AC user can practise dwg conversion with these lines. Typically the line type used in AC would be the same as the bylayer-created line type in acad. If the acad user opens the dwg file created in AC and the line type is as expected according to the bylayer export, and the name is correct the all is golden. Otherwise there is something wrong in the translator.
I would prefer an in-built dwg-translation checker in AC...like a viewer so the users that have no acad in their office can be 100% sure of the outcome.
Cheers,
Mats
AC 25 SWE Full
HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-03-26 01:09 AM
‎2009-03-26
01:09 AM
Mats_Knutsson wrote:Are you refering to the ones in the ACE Library? There are a few great ones in there - i think one was done by Matthew Lohden and another by an Aussie guy (think it was Rob?)
Hi,
There are some very nice objects that "tables" and displays all pens, fills and materials used in an actual project. I don't know who did them but I was inspired to create a similar thing that draws a line for every layer and also displays the layer name. The purpose is of course to calibrate and visualize the bylayer dwg-export. I can't do it so I wonder if any of you GDL-gurus has done it?
Regards,
Mats
I was pretty sure they had their details in the GDL scripts.
As for the Layers .. unfortunately these are not available as Globals, only the Layer the object is on - so no array of names
