Normally the input to the sketchup from ruby code is in absolute coordinate system.,
Could anyone guide or throw some light, how to input the values in relative coordinate system in ruby.
the below code is absolute coordinate system.
# Default code, use or delete... mod = Sketchup.active_model # Open model ent = mod.entities # All entities in model sel = mod.selection # Current selection #declaration of variables height = 720.mm #Height of the cabinet depth = 550.mm #depth of the cabinet wd = 600.mm #width of the cabinet thickness =18.mm #thickness of the panel # Left side Panel pt = [0,1,2,3] pt = [0,0,0] pt = [thickness,0,0] pt = [thickness,depth,0] pt = [0,depth,0] #creation of face - LH Side panel face = ent.add_face(pt) face.reverse! face.pushpull(height, true) lh_group = ent.add_group face.all_connected lh_group.name= "LH Panel"