I’m new in sketchup, I want to export my model using Sketchup api, and I want to export it with the project name. How I can do that?
I’ve searched and found a solution like this ,
modelPath = Sketchup.active_model.path filename = File.basename(modelPath, '.*') outpath = File.join(Constants::OBJ_EXPORT_DIRECTORY_PATH, filename+'.obj')
but the problem in this case is if the file is not saved yet
Sketchup.active_model.path will return null, so I have to think something else.