Hi all,
I am completely new to Rhino.Python (or whatever scripting tools you may suggest for the topic below), and I am trying to figure out how to do a set of things.
Mainly, I’m trying to learn how to script this stuff, but I am unfamiliar with the syntax and where to get all the info I need. Here is what I am trying to accomplish:
Background: My team and I process thousands of lasercut projects each year, and we have to check each laser file to make sure it has certain things:
- No duplicate lines
- This usually requires a SelDup, and if anything got selected, a Delete
- No lines floating above or below the C-Plane
- No lines that have a print or display color different than their layer color
- All curves that can be joined are joined
- Any hatch falls any of 3 specific layers
- Any line falls on any of 5 specific layers
- (If possible) any lines on a yellow layer are surrounded by lines on a blue layer
Extra features that I would like to learn how to script:
- If any of these checks fail, pop up a dialog box at the end of this script that says which ones failed, how many duplicates there are, whether or not things are floating above the C-Plane, etc.
- If those checks do fail, automatically format a string of text and copy it to the clipboard so we can paste into a chat with the customer (students) letting them know what needs to be fixed for us to process the file.
- If the script completes without detecting any errors, allow us to put in a number (1, 2, 3, etc) that corresponds with a specific selection area that we can then print (aka send to our laser software). Also, if this would allow specific print settings to be applied at that time, that would be incredible.
Any help with similar scripts, good places to find reference material, or help working out the syntax would be incredible. I am used to scripting in C++ mostly, so python, and especially python for Rhino are a little foreign.
Thank you!