I cannot get to return the model’s name.

Using 15.3.331

Thanks for any help

#2 is quite odd [and somewhat redundant]: you can set, then get, a ‘name’ [used in Model Info>General] quite separately from the ‘title’ which is the saved title of the skp file…
It’s best to use Sketchup.active_model.title to get that…
It returns an empty string “” if the model has never been saved, otherwise it should then return the correct name of the skp as a string…


[1] is the model title, and [2] is the model name.


Excellent! Thank you.