GDL
About building parametric objects with GDL.

Custom Section marker creation

Ahmed_K
Advisor

Hi, 

 

i created a new object from scratsh :

from the file menu command, i selected create new object, 

then i selected a subtype : section marker, 

in " 2D symbol" window, i draw the marker symbol using lines and hatches, 

 

I have 2 questions : 

1 - when i apply the marker to a section , it's stretched, and non responsible for size parameter, how to correct that ?

2 - how to add text to show the section name.

 

no need for dynamic hotspots, or any parametric stuff, a simple marker for daily work, nothing special.

 

Thanks.

 

stretched marker

Ahmed_K_0-1732212652490.png

 

how it should look like:

Ahmed_K_1-1732212693756.png

 

 

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

Hi @Ahmed_K 

 

Draw the symbol inside a boundary square defined just by hotspots at the corners (see the picture below). That is to mantain the proportion. Draw the symbol with the dimensions you need for printing (e.g. if you are in 1:100 scale and you want it to be 1 cm x 1 cm draw it as 1 m x 1 m)

Select the symbol and the hotspots.

Go to menu File> Libraries and Objects>  Save selection as object...> Object...

Clic on Select Subtype... and select Documentation Element> Drawing Symbol> Marker> Section-Elevation Marker> Section Marker

Check Use as subtype and Placeable options ON.

Clic on 2D script button.

mul2 shows boundary square dimensions (A x B).

Change add2 coordinates so square moves from the lower left corner to the middle top point of the top (-A/2 x -B).

(Optionally you can delete those parameters for pens you don't need at Parameters button.)

Now you can choose your new section marker from the section marker tool.

 

Regards.

RicardoLopez_0-1732287962351.png

 

 

 

 

M. Arch. Ricardo López
BIM Consultant | Project Solutions and Services | Panama
AC17-28 SPA+INT | Windows 11 | MSI CreatorPro M16 HX C14VJG, 64GB, Nvidia Quadro RTX 2000 Ada Generation
Ahmed_K
Advisor

Hi @Ricardo Lopez , 

 

Thanks this works well ! 

 

do you know how to add section market ID text in that symbol ?

 

Thnaks

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

Hi Ahmed,

 

Building on Ricardo's solution:

  • place a text next to the drawing. Set up its text style, anchor, etc. as needed, the actual text can be just some dummy value.
  • save as object
  • when you change the subtype, some parameters will be added to the parameter list: AC_MarkerText_1 is the ID, AC_MarkerText_2 is the name of the section. These parameters will be set by AC.
  • replace the dummy text string in 2D script (should be before an endparagraph statement) to AC_MarkerText_1

 

Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest

Is it possible to have different symbols on section line ends? 

Without going the 3rd party route, you could use a Linked Marker to show the second marker head.

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