This is the easiest way, but it will download all the scripts. I should probably make a new repository for the layout tools only to avoid this.
Thanks! inorder to save im assuming its just running the python editor tab and saving?
Hi again
How do you install the python scripts into rhino with the icons?
Thanks
easiest way is download the .rui I posted earlier in this thread and replace the paths in the toolbar icons
Sorry i meant when on in rhino how do you download the scripts and make it as a template so it loads everytime
these are still useful!
Hi @Gijs ,
I canât use align dim script in rhino 8.
Scripts run in Rhino 8 probably run as Python 3 scripts, which will likely make them fail. Can you try with RunPythonScript instead?
I will try to update the scripts so they work as well without having to do that. Itâs most likely failing on a print command
In Python 2 you could do:
print "blabla"
Python 3 requires:
print ("blabla")
After a few tries I realised the problem was with my dimensions. Strange. In the file below, the dimensions on the left cannot be aligned with the script. But when I move the objects to a different position (like on the right) the align script works.
Untitled.3dm (71.3 KB)
Also, this error screen appears when a different object type such as text is selected when selecting objects in the script. I hope you can make an update on this issue.
hi @hesro the issue is that Rhino will update the annotation objects, since they have history enabled.
the error I will fix shortly in an update (where I also fixed the print statements)
Anyway, I would need to revise these scripts to make them more universally applicable. I just saw that the project view script doesnât really work anymore, and is anyways obsolete now that Rhino 8 has Detail > From Detail
Then it seems I need to write a macro that purges the history, before your script run.
I can see if I can add that as an option. See if the dims have history and if they do, ask if the user wants to remove it. The history purge on these dims, means they will be detached from the geometry.
would be nice, thank you for the responses.
I was going over it again and I got a question. so, does moving the object remove the history relations?
If you pull the scripts again from github, you can use the adjusted code for align dims (and the others have the print thing fixed)
in principle not
I just downloaded and tried the new scripts and it works fine. thanks again.
hmm I donât know how I can show you why it is not working at my end but after I select the dimension and click somewhere nothing happens - when I run the script via scripteditor at this point the editor pops up again but I dont see any bugs or smth highlightedâŚ