⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • Components to layers?

    8
    0 Votes
    8 Posts
    413 Views
    TIGT
    It IS possible but I'd not recommended it... Best if a Component's base geometry is left on Layer0 and the Instances are placed on Specific Layers in each Model that way you can have some 'trees' on and some off by having them on TREE-PH01 and TREE-PH02 layers for example... An outline to do what you want is a tool you run and it asks you for a folder to process, starting in the Components folder. You navigate to say your 'Trees' folder and pick one of the SKPs in there. Now it knows which folder to process. Now asks for the Layer name - it could read the base-folder name and capitalize it and truncate to 4 characters to suit AIA standards etc - in the dialog you [accept or] enter a name - say 'TREE' for the layer. It then imports each SKP file in turn as a Component. It takes that Component-Definition's entitles [and any sub-component-instance definition's entities ?] and puts them onto a Layer called 'TREE'. It then exports that Component back into the same location, overwriting the original. All SKPs are processed. You do a folder of similar Components at a time. You might need some pre-processing thinking and say split your Planting into folders like Trees, Shrubs, etc IF you want separate layers for these... My import_from_folder.rb is an example of how to import files... perhaps more applicable my batchEraseFlatInstances.rb which does something similar to what you want, BUT that goes through a list of SKPs in a selected folder - imports them, edits them to erase 'flat' instances within them and then does a save_as on the definition back to where it was...* The changing of layers etc is also to be found in many scripts available here and could be substituted for the erase 'flat'... part of this script*...
  • View.draw - what font and size?

    5
    0 Votes
    5 Posts
    316 Views
    TIGT
    @thomthom said: I changed the Screen Text and the Leader Text in Model Info - but none of that affected the text produced by view.text. In a way I hope that it doesn't use the setting of any of these - as calculating the position of text would be completely impossible if it did (as oppose to just difficult if it's fixed.) You are quite right - I quickly did the test using Chris's Bender Script that puts up 'start' and 'end' text, BUT I now discover that this text isn't view.text at all, as I had thought - it's actually some plain leader-text that is added then deleted ! Sorry for the confusion Seems that the draw.text IS predetermined and unchangeable after all
  • SketchUp Aftermarket Economics

    3
    0 Votes
    3 Posts
    281 Views
    M
    In a former life, I founded and ran an Xbase (dBASE, Clipper, FoxPro, ...) aftermarket company. It was successful as we had two excellent marketing channels. The Clipper community had about 40 active clubs, nationwide. A press release about your latest and 40 stamps was all it took to appear in 40 newsletters. There was also a small magazine, DataBased Advisor that was read avidly by Xbasers. A full page ad wasn't expensive and almost every reader was your potential buyer. I'm trying to think of ways to reach my audience: SketchUp newbies. Best I'm coming up with is to turn promptly to treeware, as the newbie might head to Amazon when s/he finds out that SU has a bit of a learning curve. Treeware in the age of YouTube.
  • Creating edges where faces intersect a plane?

    5
    0 Votes
    5 Posts
    1k Views
    thomthomT
    This could be interesting: Entities.intersect_with http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/entities.html#intersect_with Also means you need a real Face to intersect your lines with. But it will correctly intersect faces that has holes in it. You'd need to create a temporarily face (inside a group I'd recommend) large enough to cover the entities you want to intersect. You could make it as large as the scene boundary. Then iterate over the faces you want to intersect, filter out those edges where the vertices lie on your intersecting face. Intersect the faces with your intersect_face.
  • Editable Component?

    6
    0 Votes
    6 Posts
    262 Views
    Chris FullmerC
    You will need to create a tool class that lets you right click on a component. Then it should check that component to see if it is one of yours, probably by checking for an attribute_dictionary that should put on your special components. I'll write up a quick example of how to amke a tool that right clicks, Chris
  • Refresh model viewing extents?

    13
    0 Votes
    13 Posts
    675 Views
    thomthomT
    If only the 3D drawing methods would draw something other than solid black fill...
  • Vertex selection/transofrm plugin

    18
    0 Votes
    18 Posts
    3k Views
    TIGT
    Also my 2D Polyline Edit Tool effectively lets you relocate a Polyline's Vertices by picking on them and their new location, one at a time... See its code for how it does those transformations, with a 'ghost polyline' till you end it...
  • Angle = vector1.angle_between vector2

    6
    0 Votes
    6 Posts
    347 Views
    honoluludesktopH
    Tossed everything, went "mushin", empty mind, back to the api, and found in one line, exactly what I was trying to do: new_transformation = Geom::Transformation.new(point,vector_z) Sigh.....what was I thinking before?-(, Thanks for trying to help.
  • Front face vs back face

    10
    0 Votes
    10 Posts
    605 Views
    TIGT
    The right-hand rule: imagine holding the face's normal vector [axis' if you will] in your right-hand, with you thumb pointing in the + direction. Your fingers will curl counter-clockwise. That rule applies to a face's outer_loop's vertices array. It also applies to rotations etc about an axis etc... It's opposite for any inner_loops vertices array - i.e. clockwise. It doesn't matter which direction/order the face's edges were originally drawn: an array of the loop's vertices is always returned ordered in that particular way - ccw or cw. The vertices' order does affect the face's normal when drawing faces: however, SUp does seem to have that overriding rule to draw a face with its normal pointing down IF the face's Z=0 !!!
  • [Code] UnicodeEx - (0.2.0a) Sketchup + Character Encoding

    24
    0 Votes
    24 Posts
    8k Views
    thomthomT
    I have no experiences with .so files.
  • Adding geometry to model - speed issues

    40
    0 Votes
    40 Posts
    6k Views
    thomthomT
    I hope Mr. Someone comes back and finished the job...
  • Off topic: smallpt

    2
    0 Votes
    2 Posts
    207 Views
    honoluludesktopH
    Where is the Su2SmallPt.rb :-), Nice post.
  • How do you detect a Polygon?

    31
    0 Votes
    31 Posts
    2k Views
    TIGT
    Updated all of the tests so only load is not built in methods... http://forums.sketchucation.com/viewtopic.php?p=188743#p188743
  • Best Strategy for Clean Geometry

    7
    0 Votes
    7 Posts
    539 Views
    TIGT
    Martin is/was making it far too complex... it even converted the group to a pointless component ? KISS... Jim's example is the better way to do it... Explode the group at the end if desired...
  • Orient a group from one plane to another?

    4
    0 Votes
    4 Posts
    185 Views
    thomthomT
    Not something you can make changes to existing tools. But when creating your own tool it should be possible.
  • [WebDialog writer's tool] JavaScript Console

    7
    0 Votes
    7 Posts
    670 Views
    C
    Again, I have to recommend Firebug Lite. It has a full featured Javascript console plus HTML DOM and CSS browsers. It works on IE, Safari, Firefox and Chrome and you can add it to any HTML doc with only one (long) line: <a href="javascript&#058;var firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js');document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug);">Firebug Lite</a> http://getfirebug.com/lite.html
  • Some interesting serverless database. What do you think?

    11
    0 Votes
    11 Posts
    1k Views
    J
    I think CouchDB is an interesting project, too.
  • Mathematical Formulas to Ruby

    9
    0 Votes
    9 Posts
    627 Views
    thomthomT
    Thanks Fredo. I've taken an interests into Bèzier patches. And while I could easily produce a patch using the @Last bezier.rb, I wanted to try to understand more about how it worked technically. That way I could eventually improve the method I use to create the patch, as at the moment I'm not sure if it's efficient the way I do it. But yea, Bèzier curves are really cool. Thanks for your feedback Fredo.
  • Autosnap?

    22
    0 Votes
    22 Posts
    3k Views
    finewoodF
    Sorry, was a response to this post ...... Jim Global Moderator Posts: 2091 Joined: Mon Nov 12, 2007 10:13 pm Name: Jim Foltz Operating system: XP Pro SP3 SketchUp version: Google Pro 7.1 .....but the thoughts are free - also my finewood
  • Slice solid objects

    4
    0 Votes
    4 Posts
    354 Views
    pilouP
    Better indeed

Advertisement