[REQ?] Functions in closed groups as if open
-
Working with solids, I wish to work inside groups more often without opening them, primarily move and push-pull functions. I have tried the plugins that can pushpull in closed groups but they don't really work like the native pushpull, which is what I need. Also regular move actions inside closed groups seem within reach if you consider the things that Fred06 is capable of doing.
Or are there primary constraints that prohibit such operations?In many cases one can just click in and out. But the above would enable some more manipulation of nested groups etc. I've wanted the same thing in CAD (toggle on and off working in closed groups) as well.
-
I've moved this post into the Developers' Forum as it code rather than plugin related...
[If you have similar questions please post them in this forum...]Many functions can happen within an 'entities' context.
This need not be themodel.entities
but it can be themodel.active_entities
- which might be themodel.entities
or any other entities collection IF you are editing something when you run the code... as mentioned below...
Anygroup
or acomponent.definition
has 'entities'...
So... if you have a reference to agroup
thengroup.entities
is a reference to things within that... so all of the entities 'manipulations'. like adding faces work inside the group too... e.g.group.entities.add_face(p0,p1,p2)
You can't dynamically move in and out of edit contexts [but you can step back, OUT of an edit until you are in the model...]. However, the
.entities
method let's you access what's in a group/definition without needing to... -
TIG,
As I haven't made the foray into ruby and coding myself. I will try to absorb what you have explained about
entities
. And if it is not possible at the moment, perhaps I'll eventually make something of it. I think you addressed the question about the primary constraints. It appears so much is possible.I have also been thinking about the value of the request / question , because in my particular methodology I have been finding OK techniques with the native way SU is intended to work.
Thanks very much for the reply, Peter
I took a class in FORTRAN once. Does that count?
Advertisement