Two potential issues, both arising out of the fact that the script generating the EAP doesn't actually execute until after your script finishes, so using a menu command will look for selected objects, and that the time you call the menu, the object doesn't exist yet.   In general, avoid DoMenuText in favor of vs commands that accept handles.  Using AddSolid() should work better for you: http://developer.vectorworks.net/index.php/VS:AddSolid   A solid addition is essentially a
    • Like
    1