Newbie to Ruby
-
I've been with SU since nearly day one, but new to Ruby.
I'm trying simply to create geometry based on points from selected geometry. I know how to parse through select objects, but can't seem to figure out how to extract the Start and End points of a selected Edge. Not sure this is the correct subforum for this. TIA!
David William Edwards
-
Assuming the reference to the Edge is
e1sp = e1.start.position ep = e1.end.position -
<span class="syntaxdefault"><br /></span><span class="syntaxcomment"># Assuming a single edge is selected<br /></span><span class="syntaxdefault">model </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">Sketchup</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_model<br />edge </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">selection</span><span class="syntaxkeyword">[</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">]<br /></span><span class="syntaxdefault">start_point </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">edge</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">start</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">position<br />end_point </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">edge</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">end</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">position<br /></span>API Reference
http://www.sketchup.com/intl/en/developer/docs/ourdoc/selection
http://www.sketchup.com/intl/en/developer/docs/ourdoc/edge -
I have been using Sketchup for a long time but I cant figure out how to load Solid Inspector.
It seem that I have loaded Simple Installer correctly because I can see it in the plugins drop down menu. I believe I installed solid inspector the same way and I can see it in library/application support/sketchup/plugins.
(see attached screen shot)However, it does not appear in the plugins drop down menu.
When I open Sketchup I get this error message:
Error Loading File tt_solid_inspector-2.rb
no such file to load -- TT_Lib2/core.rbError Loading File tt_solid_inspector.rb
no such file to load -- TT_Lib2/core.rbError Loading File tt_solid_inspector.rb
no such file to load -- TT_Lib2/core.rbI am using a Mac OSX 10.6.8 with Snow Leopard and Sketchup 8.
I have some complex components which I cant figure out how to make solid so I would really appreciate some help.
Thank you in advance.
Sean -
Did you ALSO install TT_Lib2 ?????????????
Obviously solid inspector has a library dependancy on
TT_Lib2.Did you read the solid inspector post for dependancies, and install all those needed ?
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