How 2 write a script 2 loop group names and move them
-
Hi
I need to find or write a script that
-
loops through all group names that match a alphanumeric string combinations that include a type and distance value,
-
store that group name in an array
-
Read the group type value and distance value from the group names that meet a string pattern (ie mid(string,start char,finish char)
-
Move the matching group by the relevant distance * a factor (ie 1000 mm * 1.5) in the relevant direction according to the group type value
-
Loop to the next matching group name and repeat until done
I am v familiar with Sketchup and have some simple vb6 programming experience. I have looked the syntax of some ruby scripts doing move tasks but I cant seem to get past the starting point in writing my own. I would be most grateful for some tips on writing my first script incorporating these steps so I can learn how to write scripts for other automation tasks as well.
Any suggestions would be much appreciated.
Regards David
-
-
Hi
Any tips and suggestions on how to do this are still welcome.
However as many members are no doubt aware there is a great resource on writing scripts for Sketchup in the 13 Chapter 400+ pages on Automating Sketchup "by Matthew Scarpino at :
http://www.autosketchup.com/downloads/Automatic_SketchUp.pdf
This looks like it covers all of the things I set out in this post so here goes.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement