cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Ahmed_K
Mentor

Add a macro to an Archicad window

Hi, 

I created a simple box with GDL, this is like a concrete window sill, which should be placed under the sill finish.

I want to link that box as a macro the the default Archicad windows, can someone explain the process please? 

What I need: 

  • the box is centered to the window 
  • the box volume is substracted from the wall
  • I can edit box sizes from window settings box.

Thanks a lot.

 

Ahmed_K_0-1770028951577.png

 

Operating system used: Windows 11

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects
Setup info provided by author
18 Replies 18
Ahmed_K
Mentor

My first gdl macro haha 

 

Ahmed_K_0-1770131988341.png

 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects
Lingwisyer
Guru

https://community.graphisoft.com/t5/Libraries-objects/Keep-objects-on-same-orientation-while-mirrori...

 

I brought it up in this thread, but the easiest way would be to create new top level objects into which you call the original object as well as your macro. A UI will be required for your macro as GS objects hide the All Parameters tab and there is no way to override that...

 

Lingwisyer_0-1770173104778.png

I just trial and errored the TABID to get it where I wanted in the menu.

 

 

Ling.

AC22-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
Barry Kelly
Moderator

@Lingwisyer wrote:

A UI will be required for your macro as GS objects hide the All Parameters tab and there is no way to override that...


Hunt for the line... HIDEPARAMETER ALL ... and comment it out.

It should be in the main object or the it could be in the macro that calls the user interface.

 

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
Lingwisyer
Guru

But that would require editing it in original GS objects.

AC22-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
Ahmed_K
Mentor

but the easiest way would be to create new top level objects into which you call the original object as well as your macro. A UI will be required for your macro as GS objects hide the All Parameters tab and there is no way to override that...

 

Why ? , should i design a new interface for the whole object ?

 


 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects
Lingwisyer
Guru

You just need to do the UI page for your macro. As long as all of the parameters from the original object are available, it's UI will come through if called. Easiest way to get all the parameters would be to start your object from the original GS object with cleared scripts, else you could use the LP_XMLConverter to copy them across.

 

Ling.

AC22-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
Ahmed_K
Mentor

I called it with this line : 


! Contact person: <SzL, NJ>

EPS = 0.0001

if GLOB_SCRIPT_TYPE <> 7 & GLOB_SCRIPT_TYPE <> 8 then

    call "gs_general_window_macro" parameters all   iWindowClass    = 1,    ! WINCLASS_NORMAL
                                                    iWindowType     = 1     ! WIN_W1

endif​

I got this , i can't navigate in the interface 

 

Ahmed_K_0-1770279581699.png

 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects
Lingwisyer
Guru
Interface Script
call "gs_general_window_macro" parameters ALL,
RETURNED_PARAMETERS tabIDx,
iParID_WallOpening
I actually did not do the call in my Master Script but did a seperate call in each script with the Parameter and Interface including the RETURNED_PARAMETERS.
 
Ling.
 
ps. Thought I copied that from the basic GS window, but I cannot find that return...

AC22-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
Ahmed_K
Mentor

Hi Again ,

 

Call "Object name " PARAMETERS ALL fixes the problem, it calls also the interface correctly

 

now i can insert macros on top ot it and call them.

i'll try 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!