License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Layout ID for Custom Section Marker

vitoriakananda
Contributor

I was trying to create a custom section marker in Archicad 25 and I was able to create the reference to the section name using the:

 

Spoiler
AC_MarkerText_2

However, I can't figure out how to adjust the 2D script to show the Layout ID. I already try AC_PM_Autosheet, thinking it would work similarly to the AC_MarkerText_2, but it didn't work and an error message appeared. Does anyone know how to do this? Sorry if it's a really stupid question, it's the first time I try to use GDL.

 

Any help is appreciated! Thanks in advance 🙂

 

Here is the GDL script I used (bold is what didn't work) and an image of how the representation is now:

 

 

Spoiler

mul2 GLOB_SCALE, GLOB_SCALE

hotspot2 0,0

drawindex 10
pen penAttribute_1
set line_type lineTypeAttribute_1
poly2_b{5} 4, 1, 0, 3, 1, 0,
0, 0, 1, 0, 0, 1, 0,
0.008575689309737, 0.006860545343184, 1,
0.01715137861947, 0.001715131757349, 1,
0, 0.001715131757349, 1,
0.008575689309737, 0.006860545343184, 1
poly2_b{5} 2, 1, 0, 3, 1, 0,
0, 0, 1, 0, 0, 1, 0,
0, 0, 1,
0.03691476927454, 1.665334536938E-15, 1
define style{2} "AC_STYLE_1" "Swis721 Lt BT", 3.5/GLOB_SCALE, 0

paragraph "AC_PRG_3" 2, 0, 0, 0, 1
pen penAttribute_2
set style "AC_STYLE_1"
AC_MarkerText_2
endparagraph
textblock "AC_TEXTBLOCK_3" 0, 2, 360, 1, 1, 1,
"AC_PRG_3"
richtext2 0.008575689309737, -0.004493477977424, "AC_TEXTBLOCK_3"
define style{2} "AC_STYLE_2" "Swis721 Lt BT", 2/GLOB_SCALE, 0

paragraph "AC_PRG_4" 2, 0, 0, 0, 1
set style "AC_STYLE_2"
AC_PM_AutoSheet
endparagraph
textblock "AC_TEXTBLOCK_4" 0, 8, 360, 1, 1, 1,
"AC_PRG_4"
richtext2 0.008575689309737, -0.004152733782793, "AC_TEXTBLOCK_4"

 

vitoriakananda_0-1668537618889.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Lingwisyer
Guru

"<MARKERSHEETNUMBER_R>" + AC_DrawingGUID

 

Think that is how the default markers do it.

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

View solution in original post

4 REPLIES 4
Solution
Lingwisyer
Guru

"<MARKERSHEETNUMBER_R>" + AC_DrawingGUID

 

Think that is how the default markers do it.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
vitoriakananda
Contributor

This really worked, thank you so much!

Lingwisyer
Guru

If you look at the macro "Marker Link Parameters" you can see how GS has handled all of the back referencing options. Personally, I just duplicated the default marker and 1st level macro, then replaced the script where it drew the actual marker with my own shapes.

 

Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
vitoriakananda
Contributor

I hadn't thought of it that way, but I went to test it and it worked too. Thanks a lot for the tip!

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!