Hi Jim,
Yes that's exactly what I wanted! Thank you. I've managed to get the code to draw the internal leaf as well. The only small problem now is I'm repeating myself in the code to get this result, which seems wrong.
Is there anyway to get this result without have almost identical code running twice? Is there anyway to push two faces along the same path at the same time to give the result below?
fyi this is how the code looks now.
` mod = Sketchup.active_model # Open model
ent = mod.entities # All entities in model
sel = mod.selection # Current selection
wallGroup = ent.add_group
#face points
pt1 = [0,0,0]
pt2 = [0,10,0]
pt3 = [0,10,100]
pt4 = [0,0,100]
pt5 = [0,20,0]
pt6 = [0,30,0]
pt7 = [0,30,100]
pt8 = [0,20,100]
#line points
lpt1 = [0,0,0]
lpt2 = [150,0,0]
lpt3 = [100,150,0]
lpt4 = [0,100,0]
path = []
face = ent.add_face pt1, pt2, pt3, pt4
path.push ent.add_line lpt1, lpt2
path.push ent.add_line lpt2, lpt3
path.push ent.add_line lpt3, lpt4
#line = ent.add_line lpt4, lpt1
status = face.followme path
path = []
face= ent.add_face pt5, pt6, pt7, pt8
path.push ent.add_line lpt1, lpt2
path.push ent.add_line lpt2, lpt3
path.push ent.add_line lpt3, lpt4
status = face.followme path`