@joe5 wrote:
I’m working on writing some custom python commands for use within Rhino 6 (version 6.2.18065.11031, 3/6/2018) and am running into an issue using the rs.Command().
For example,
import rhinoscriptsyntax as rs __commandname__ = "Test"` def RunCommand( is_interactive ): rs.Command("_Delete ") return 0
This does not delete the selected objects when “Test” is ran from the rhino command line.
If I run the code from the editor using RunCommand(True), it will work correctly.
import rhinoscriptsyntax as rs __commandname__ = "Test" def RunCommand( is_interactive ): rs.Command("Delete ") return 0 RunCommand(True)
Is there a solution to this?
Thanks,
Joe
Posts: 2
Participants: 2