copilot says yes:
"# Sélectionner le plan de section
model = Sketchup.active_model
entities = model.active_entities
section_planes = entities.grep(Sketchup::SectionPlane)
if section_planes.any?
section_plane = section_planes.first
Définir une nouvelle transformation pour déplacer le plan
translation = Geom::Transformation.new([10, 0, 0]) # Déplace de 10 unités sur l’axe X
section_plane.transform!(translation)
puts “Le plan de section a été déplacé.”
else
puts “Aucun plan de section trouvé dans le modèle.”
end
"
but it is AI hallucination
sketchup documentation says transform! is only for groups and components
That sounds like you didn’t create plane array correctly. What did my_plane_array have in it? It should be an Array of one Geom::Point3d and one Geom::Vector3d, or an Array of four numbers that “give the coefficients of a plane equation”.
Edit: in case that vague API doc statement isn’t clear:
if you pass an Array of [Geom::Point3d, Geom::Vector3d] the point is any point on the plane, and the vector is the normal vector to the plane.
if you pass an Array of four numbers, they are the coefficients [a,b,c,d] of the 3d plane equation ax+by+cz = d