Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Property script issue

Anonymous
Not applicable
Hello!

I am new to property scripting.
The following script returns value twice. Will anyone inform me why?

M=REQ("COLU_CORE_BMAT_NAME")
Col_core_mat=COLU_CORE_BMAT_NAME
N=REQ("COLU_CORE_FILL")
core_fill=colu_core_fill

print col_core_mat,
colu_core_fill

Result: 2 lines
Reinforced Concrete - Structural 6
Reinforced Concrete - Structural 6

Thanks in advance

Naraindrra
1 REPLY 1
Laszlo Nagy
Community Admin
Community Admin
Try this (no need for REQ when using GDL Global Parameters):
col_core_mat = COLU_CORE_BMAT_NAME 
core_fill = COLU_CORE_FILL

print col_core_mat, 
colu_fill 
Or just simply:
print COLU_CORE_BMAT_NAME, 
COLU_CORE_FILL
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28