Section Plane
-
In TT_Lib I have a wrapper that load a component with a section cut from the subfolder of the library.
But! There is more problems with sections cuts:
No way to set or get the active cut.SectionCuts = PITA
-
i was just looking into that set/get active cut
when you make a copy one of them gets set as non-active, so that is not an option.
I'll have a look into that TT_LibPITA? Like in FUBAR?

-
Pretty much.
@pout said:
i was just looking into that set/get active cut
when you make a copy one of them gets set as non-active, so that is not an option.
I'll have a look into that TT_LibMy TT_Lib only inserts - no get/set.

-
Even if you set the section-plane inside the imported component as active, when you explode the component the section-plane ceases to be active ?
-
@tig said:
Even if you set the section-plane inside the imported component as active, when you explode the component the section-plane ceases to be active ?
Yes.
-
well there goes my idea of letting a section plane move over a period of time for each individual group/instance

back to the drawing board! -
mhm another show stopper...

-
For verification:
It is impossible to create a section plane through the ruby API
Its is impossible to move (transform!) a section plane through the ruby API
It is possible to delete a section plane through the ruby API (erase!)Is this correct?
Thx!
-
Aye, a SectionPlane inherits
Sketchup::Drawingelement- so all the methods ofSketchup::DrawingelementandSketchup::Entityis available.` Sketchup::SectionPlane.ancestors
[Sketchup::SectionPlane, Sketchup::Drawingelement, Sketchup::Entity, Object, Kernel]`
The only thing is that you don't get any methods that relates to how a sectioncut function other than being able to get or set the plane.
-
ThomThom,
you got me a bit confused now.
I seem to be unable to move (translation) a section plane by the blue axis through API.
But since it is an entity, i should be able to do it?thx
-
ok, a bit in shame I confees that I can move a section plane but only by certain axis.
I do have to do it like this though:ent=Sketchup.active_model.selection[0] # a sketchup section plane vector = Geom;;Vector3d.new 0,0,-3 t = Geom;;Transformation.translation vector Sketchup.active_model.entities.transform_entities(t,ent)ent.transform! or ent.transformation does not work
Now, let's say i have 2 groups, each with a section plane in them.
First one i want to move -3 over z-axis, the other one -1 over z-axis.
This can be done?But auto-creation of a section plane for (and in) each group is not possible i suppose
-
@pout said:
ent.transform! or ent.transformation does not work
ent.transform!andent.transformationis not part ofSketchup::EntityorSketchup::Drawingelement. They are part ofSketchup::GroupandSketchup::ComponentInstance.@pout said:
Now, let's say i have 2 groups, each with a section plane in them.
First one i want to move -3 over z-axis, the other one -1 over z-axis.
This can be done?Entities.transform_by_vectors
http://code.google.com/apis/sketchup/docs/ourdoc/entities.html#transform_by_vectors@pout said:
But auto-creation of a section plane for (and in) each group is not possible i suppose
"Auto-creation"?
You can only add a section plant to a model by inserting a component with a section plane and then exploding the inserted instance. Bit of a hack. But you won't be able to activate it. -
ThomThom, thx for the answers!
With auto-creation I mean this:
The creation through ruby of a section plane in each of the 20 groups that are in the model.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement