Script outputs a circle but not a cylinder

 From:  Michael Gibson
5441.33 In reply to 5441.28 
Hi Martin,

> because I can't get moi.geometryDatabase.selectLastCreated(false) to work.

This is probably because you're not creating the objects in the context of a "command" - there are various things that the command mechanism sets up before and at the end of a command, and the mechanism for recognizing the last created objects is one of those, as well as stuff for setting up undo units, etc...

If you want those kinds of things to work you will need to put your script into a file in the commands folder and then run it as a command rather than as inline instant executed script.

- Michael