We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.
SOLVED!

perform coordinate transform in macro

Hi all.

Is it possible to perform coordinate transformation (e.g. add2, rotate2 ) in Macro?

 

 

MACRO OBJECT :

angleViewRot = 0
if dt then
rrr = REQUEST ("View_Rotangle", "", angleViewRot)
endif
totalRotate = (SYMB_ROTANGLE + angleViewRot) MOD 360

 

Rot2  totalRotate...

 

CALLER OBJECT/s:

 ! call macro object

! every unrotatable object i defined

 

Apple M1 Pro CPU
RAM 32 GB
1 TB OS: Ventura 13.1
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Peter Baksa
Graphisoft
Graphisoft

The transformations done in the macro won't have an effect in the caller object. What you can do is calculate the transformation parameters and return them from the macro.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

View solution in original post

1 REPLY 1
Solution
Peter Baksa
Graphisoft
Graphisoft

The transformations done in the macro won't have an effect in the caller object. What you can do is calculate the transformation parameters and return them from the macro.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

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!