In Sketchut you can manually move a group or component inside another through the otliner, and this does not change its initial position, it only changes the component, the query is with RUBY you can do the same somehow
This (and related) questions have been asked several times in the past.
From a search of the Ruby API category …
I haven’t posted much to the Ruby API board lately, primarily because I don’t usually need to, most of my code is fairly established and I usually can find a sample within my code to massage a little and reuse it.
However, today I’ve come upon a programming problem I don’t think I’ve encountered before.
First I’m creating two groups within my parent group:
entities0 = maingroup.entities
dooronlygroup1 = entities0.add_group
entities01 = dooronlygroup1.entities
dooronlygroup2 = entities0.add_…
In my experience scripting in Vectorworks, there was a way of ‘moving’ an object from inside a container to another one, a function called SetParent.
I would like a method to move a Group inside a ComponentInstance, like a user would at the Outliner window!
I know this may have been covered several times already but, not necessarily in one place and in a “This is the best way to do that” sort of way. Can you help me gather current best practices and strategies about this quirky aspect of the API into one place?
Please forgive me if I have misunderstood or misstated the actual facts below as I am trying to understand this. Ideally, I can update this post to be more accurate and useful for future users if you can let me know what needs to be revised…