Thank you very much. This has really been helpful. It was OK the first time I tried
This is the end result:
Thank you very much. This has really been helpful. It was OK the first time I tried
This is the end result:
Hello !
I am a beginner with ruby, and I want to rotate a face, and retrieve the new face
I have the following code:
` model = Sketchup.active_model # Open model
entities = model.entities # All entities in model
selection = model.selection # Current selection
pt1 = [x,y,0]
pt2 = [x1,y1,0]
pt3 = [x1,y1,h]
pt4 = [x,y,h]
fc = entities.add_face pt1,pt2,pt3,pt4,pt1
tr = Geom::Transformation.rotation ptm,vector,angle
bas1 = entities.transform_entities(tr,fc)`
this returns a status, what I want is the face after rotation. If I try anithing else, I always end up with an error
Is the rotated face still fc or is it an other one and how can I find the new one ?