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

change line type on door marker (centerline) extension line?

Anonymous
Not applicable
hello!
would anyone happen to know which variable (in GDL) controls the line type/style for the optional extension line (centerline with door marker at end) in D Marker 18?
i would like to automatically include centerlines when placing doors, and would like the centerline to be dashed (rather than the default solid), hence wanting to find and change the line type in GDL.
(i don't know enough of scripting to manually create a centerline with the door, which is why i'm hoping to use the extension line instead.)
any help would be greatly appreciated! thanks so much!
8 REPLIES 8
David Maudlin
Rockstar
mntwt:

I took a quick look at the D Marker 19, which should be similar to the 18 version. First, in the Master Script it calls a macro, gs_DW_Marker, which contains all the code. In the 2D Script of this macro there are separate parts of the code for each marker shape that includes the extension line code, so the extension line is coded multiple times. This starts at Line 216 (! Show ID). You would need to add a new variable to both the Marker and the Macro for the Line Type, or hard code a different Line Type (Set Line_Type). You should first Save As... both the Marker and Macro so you are working on separate unique parts (with new names for clarity) so your work is separated from the ArchiCAD Library.

You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
d.maudlin:
thanks so much for your reply! i'm sure you've entirely answered what i was looking for, except (sorry to ask another question), i'm not sure where to locate the D Marker 18/19 in the GDL object editor.
(i was looking in the list of parameters for the door object, for gs_DW_Marker as a variable but couldn't find it...i think i'm looking in the wrong place)
i would greatly appreciate it if you would please tell me how/where to find the D Marker 18/19 and/or gs_DW_Marker script in the GDL editor. please?
thank you very much!
David Maudlin
Rockstar
mntwt:

Use the Open Object by Subtype... command, then work your way through the hierarchy to find the door marker (you may need to add this command to your Work Environment). In the Master Script of the D Marker 18 you can simply select the name of the macro and use the Open Object... command to open the macro.

Thanks for adding the signature.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
David,
It worked! (And I learned a lot in the process too.)
Thank you so much for all your help (and patience)! I really appreciate it!
David Maudlin
Rockstar
mntwt:

Glad that you were able to get it to work, thanks for posting back. Going through these types of problems are a good way to learn GDL.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
hi!
sorry yet another question a few months later...
i've managed to modify the 'gs_DW_Marker' to dash the centerline, and saved it to our external office ArchiCAD object library (so it will be available in all our files/projects(?) rather than embedding it in only one file).

now i'm trying to modify the 'D Marker 18' to link to the modified 'gs_DW_Marker_02' (let's call it).
i know i just need to change the name in the master script to 'gs_DW_Marker_02', but when i do that, i get an error message saying it cannot locate the file.
(which is true since it's probably only looking in the embedded library).

how can i tell the master script to locate the new marker file in the external object library? (so i can have both the 'gs_DW_Marker_02' and 'D Marker 18_02' saved as objects in an external library instead of embedded one)

help would be much appreciated! thank you!
David Maudlin
Rockstar
mntwt:

There should be no difference whether the library parts are in the Embedded Library or a Linked Library for reading macros, in some cases the Libraries may need to be reloaded after modifications for the newer versions to be read.

A few possibilities:
1. Need to reload libraries
2. When creating a new part form an existing one, need to use the Save As... command rather than copying the file in the Finder. Save As... gives the new part its own unique GUID, which ArchiCAD uses (rather than the name) to distinguish parts from one another. Copying the file in the Finder creates a second part with the same GUID, so ArchiCAD cannot tell them apart.
3. If you have loaded the ArchiCAD Library, then the original parts will be loaded (they are part of the .lcf file) along with your new parts, so there needs to be unique GUIDs for all the parts. Your nee parts should be stored outside the ArchiCAD Library, so they don't get deleted if the ArchiCAD Library is updated.

If these suggestions don't work, try posting your new parts here (put them in a zip file) and we can try to replicate the issue.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
thanks again for the super prompt reply!
turns out your first option was correct--it worked after i closed the program and reopened it the next day.
again thank you so much!