Are there any rs.“something” that dose the same as CreateRegions command in rhino?
If not, can I use the command to call the command:
import rhinoscriptsyntax as rs
s = rs.GetObject("Pick a surface")
rs.Command('CreateRegions' + " " + str(s), False) #know that this do not work, just a example
Looking for answer that do not use any manual interaction, other that picking the first surface.
I don’t know that command, nor how it works, but you basically type in the command as a macro:
rs.Command(" CreateRegions s",False)
(Use " instead of ’ to indicate the start and end of the command/macro)
You can also add Pause and Enter as commands in a macro, and use space as enter after a command.
Check in Help for more info about macros. _ is to indicate an english command and - is to open up the “hidden” options/text based version. You don’t need to use the ! in combination with rs.Command.
Either one works in Python for delimiting a string, and ’ is actually considered to be more “pythonesque”. I still use mostly " but old VB habits die hard… --Mitch