Edit Archicad Library Part

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-01-19
04:04 PM
- last edited on
2021-09-14
01:28 PM
by
Noemi Balogh
2021-01-19
04:04 PM
I want to use an existing archicad metal door library part, but I want to edit its symbol.
How do I turn off the existing symbol and script my own. Adding to the 2D script seems to only draw on top of the existing symbol, it does not override it.
How do I turn off the existing symbol and script my own. Adding to the 2D script seems to only draw on top of the existing symbol, it does not override it.
Tomasz Mlynarski
New York based Architect
New York based Architect
Labels:
- Labels:
-
Library (GDL)
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-01-19 06:01 PM
2021-01-19
06:01 PM
Hi Narska,
There is a macro call in the master script that is executed before each 2d script. Add a condition based on GLOB_SCRIPT_TYPE to skip it in 2d.
There is a macro call in the master script that is executed before each 2d script. Add a condition based on GLOB_SCRIPT_TYPE to skip it in 2d.
Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest
Software Engineer, Library
Graphisoft SE, Budapest

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-01-19 07:16 PM
2021-01-19
07:16 PM
can you elaborate please.
Is the conditional suppose to be in the 2D script or the master script?
I see in the master script at the end:
Is the conditional suppose to be in the 2D script or the master script?
I see in the master script at the end:
if GLOB_SCRIPT_TYPE = 7 | GLOB_SCRIPT_TYPE = 8 then goto "MasterEnd" ! forward migration, backward migration call "gs_general_door_macro_USA" parameters all gs_doorcode = "D1 Commercial"
Peter wrote:
Hi Narska,
There is a macro call in the master script that is executed before each 2d script. Add a condition based on GLOB_SCRIPT_TYPE to skip it in 2d.
Tomasz Mlynarski
New York based Architect
New York based Architect

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-01-20 08:57 AM
2021-01-20
08:57 AM
It has to be in the master script because the master script would call the macro before executing the first line of the 2d script, and thus the macro 2d script would be executed before the object's.
if GLOB_SCRIPT_TYPE = 7 | GLOB_SCRIPT_TYPE = 8 | GLOB_SCRIPT_TYPE = 2 then goto "MasterEnd" ! forward migration, backward migration, 2D
call "gs_general_door_macro_USA" parameters all gs_doorcode = "D1 Commercial"
Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest
Software Engineer, Library
Graphisoft SE, Budapest

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-02-06 11:54 PM
2021-02-06
11:54 PM
Thank you, reporting back that this worked perfectly.
Peter wrote:
It has to be in the master script because the master script would call the macro before executing the first line of the 2d script, and thus the macro 2d script would be executed before the object's.
if GLOB_SCRIPT_TYPE = 7 | GLOB_SCRIPT_TYPE = 8 | GLOB_SCRIPT_TYPE = 2 then goto "MasterEnd" ! forward migration, backward migration, 2D
call "gs_general_door_macro_USA" parameters all gs_doorcode = "D1 Commercial"
Tomasz Mlynarski
New York based Architect
New York based Architect