Sketchup.active_model.name


#1

I cannot get Sketchup.active_model.name to return the model’s name.

Using 15.3.331

Thanks for any help


#2

Sketchup.active_model.name 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…


#3

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


#4

Excellent! Thank you.