cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Nader Belal
Mentor

Insert Object's Name as a parameter

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 Solution

Accepted Solutions
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.

Go to post

2 Replies 2
JGoode
Expert
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 27

Windows 10
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.

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!