Self written script not working anymore after update, might this be a bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
After the latest update a self written script is not working anymore as it did before.
note: I actually can't really write code in python, so I just puzzled some stuff together and it worked perfectly before, and now it does not. Also I read all the API changes in the update list as well, and could not find a change in the commands I used in my script. Though there were some changes which involves selecting things, so therefore I thought maybe something got a bit messed up? Also a befriended coder had a look at it he also could not figure out what was going wrong here.
*Since I never write code in Python, there is still a lot of bloat, still need to clean it up.
Here is the part of the code where it goes wrong. The message box appears. But after that i can't select a plane, skips this step and runs the code over and over.
Though I used these lines in two scripts, and in one of the two it is still working.
I added the two scripts in a zip file. To get it working edit name of the .py files and remove everything after and including the "+". And install this in the appropriate destination.
Note: the still-working script is a prior version to the not-working one. This does not include adding a button in a menu.
The intention of this script is to draw rectangle steel profile tubes super quick, I need to draw these often therefore I thought let's script this.
When you activate the script pressing on the SteelProfileGen button you put in width height and length of the tube and material thickness. Then you should select a construction plane and voila, it draws it for you, and names the component to its dimensions. Worked like a charm, especially when you make a 2d drawing afterwards, you have all the parts you need in a table.
This is what it looks like when it works correctly:
Thanks for reading, hopefully I'm not wasting anybodies time!
Kind regards,
Goof