I admit that I don't know much about the Lua scripting language. I am having trouble customizing the post I am using. What I want to do is insert a M00 code with a message at the start of each part after the first one. I keep getting the message inserted one line before the end of the part. This is the pp code:
function OnNewPart()
partCount = partCount + 1
post.Text(" (Part: ",partName,")\n")
if (partCount > 1) then
post.Text(" M00")
post.Text(" \"OK TO START Part: ",partName,"?\"\n")
end
post.Eol()
This happens with parts that are nested using the Multiple Duplicate command. The parts nested using the array command don't seem to have this problem.
What else do you need to know?
I fix the problem using a text editor find function then cutting and pasting. A real PITA on a fully nested sheet!