This is the first post in a new Ruby Sub-Forum called "Skx Extension Library"
Skx is a project to create an extension library for SketchUp's Ruby API.
My original intention was simply to organize all of the code snippets floating around the Ruby forum and on my computer, to document them, and to make them available as a versioned package so other scripts could take advantage of them. That remains one of the primary goals.
To facilitate collaboration (another primary goal), I set up the skx project on Google Code. Google Code was a mostly arbitrary decision selected because that is what some other people were using (citygen, SketchyPhysics, surdebug and others).
This forum is for documenting the design process and related discussions.
New Skx Sub ForumModerator: Jim
4 posts
• Page 1 of 1
Re: New Skx Sub ForumI might be able to help, but i've got a few questions like; can the snippets use variables other than just local variables (@close_point, etc.) ? If so, I've got a snippet called 'closest_point', that is used to find the closest point from an array of points, to the Point3d object ( a is a point3d object, b is an array of points. a.closest_point b). The issue is that it uses variables, and I don't know if they can or not.
![]()
Last edited by Jim on Fri Jun 19, 2009 1:37 am, edited 1 time in total.
Reason: use [code] tags for blocks of code
Re: New Skx Sub Forum
If you initialise the variable before the loop you can use then inside the loop and after the loop. Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
4 posts
• Page 1 of 1
|