Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
Component instance name. req help
-
I'm using
Sketchup.active_model.active_entities.add_instance(my_component, t) # my_component is component name and # t is applied transformationSketchup appends #+number to component's name, for each instance. I want to be able to replace # in name with other character ('/'). Is there a way to do this?
-
The Component name is a String.
ins = entities.add_instance(cdef, transf) name = ins.name name.gsub!(/#/, '/') ins.name = name -
I will add that the Definition name is different than the Instance name, but should work the same.
ins = entities.add_instance(cdef, transf) name = ins.definition.name name.gsub!(/#/, '/') ins.definition.name = name
Advertisement