BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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

Insert Object's Name as a parameter

Nader Belal
Mentor
Hi everyone,

I was wondering if there is a way to get object file name (without an extension) and insert it as a parameter using GDL script.

Example:
Filename: generic_object.gsm
param_name: generic_object

Thank you in advance
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Nader Belal
Mentor
Thank you
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

View solution in original post

2 REPLIES 2
JGoode
Advocate
Try this:
rq = request ("name_of_macro", " ", file_name) 			!---Displays file name
nm = strstr(file_name, ".") 							!---Removes .GSM after file name
param_name = file_name
ArchiCAD 23

Windows 10
Solution
Nader Belal
Mentor
Thank you
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
Learn and get certified!