Can I get a group definiton before SketchUp 2015?

The docs list a Group .definition method as ‘SketchUp 2015+’:

I’ve been using it without problems on 2015 do duplicate a group using the .add_instance(definition, transformation), can I get something similar on earlier versions?

Is there a better way of copying a group inside something else?

For older SketchUp’s consider

defn = group.entities.parent

as equivalent to the newer method

defn = group.definition
1 Like

@villares : But the above was also bugged in some older versions.

gdef = group.model.definitions.find {|d| &&
1 Like


You are of course correct - although I think those ‘ancient’ versions are ‘no longer supported’ :grimacing:

1 Like