sketchucation logo sketchucation
    • Login
    1. Home
    2. todd burch
    3. Posts
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 55
    • Posts 903
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Ruby script - set current layer

      I have one. Free. http://www.smustard.com/script/LayerChange

      Todd

      posted in Plugins
      T
      todd burch
    • RE: Metrics or inches

      If you want to change the default displayed unit in a model via Ruby, you have to change an Option (See Ruby Help>Classes>OptionManager). They are all stored in a Hash. If you want more help, lemme know.

      Also, you might try typing in "16.meters" (no quotes).

      Todd

      posted in Developers' Forum
      T
      todd burch
    • Ruby Tutorial: How to create and add a component from Ruby

      I've been asked a few times to explain how to add a component to a model from Ruby.

      This short example shows the basics of how to do it. There are only a few steps required, but it's not readily intuitive when first getting started with Ruby. So, without further ado... here you go. (See attached script without all the formatting to run it yourself.)
      **%(green)[# How to Create a component and add it to you model from Ruby.

      Written by Todd Burch www dot smustard dot com June 23, 2007.

      First, create a new Component Definition. The name "MyCube" is arbitrary.]

      new_comp_def = Sketchup.active_model.definitions.add("MyCube") ;

      # Now, define some points for an arbitrary face.
      %(blue)[points = Array.new ;
      points[0] = ORIGIN ;]# "ORIGIN" is a SU provided constantpoints[1 = [100, 0 , 0] ;
      points[2] = [100, 100, 0] ;
      points[3] = [0 , 100, 0] ;]
      %(green)[# Now, add the face to the new component definition.

      Don't add it to the model, as in Sketchup.active_model.entities.add_face... - but add it to the component definition.]

      newface = new_comp_def.entities.add_face(points) ;%(green)[# returns a Face

      If the blue face is pointing up, reverse it.]

      newface.reverse! if newface.normal.z < 0 ;%(green)[# flip face to up if facing down

      pushpull the face into a Cube]

      newface.pushpull(100) ;%(green)[# extrude it up to make a cube

      To add the component, you have to define a transformation. We can define

      a transformation that does nothing to just get the job done.]

      trans = Geom::Transformation.new ;%(green)[# an empty, default transformation.

      Now, insert the Cube component.]

      Sketchup.active_model.active_entities.add_instance(new_comp_def, trans) ;**

      Obvioulsy, this can be expanded upon to be more interesting.

      There is another way to add a component to a model, and that is through the model.place_component method. The place_component method allows the user to left-click where the component will be placed. You can define the insertion_point so that the specific insertion point of the component is at the tip of the cursor.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: [Plugin] Script for making of logs

      I didn't look at the script, but I can tell from your picture what you are trying to do.

      First, draw the circle for the end of the log. Then draw an interior arc at the bottom of the circle which would represent the portion of the log that you would cut away. Then, remove the lowermost section of the circle to create the final profile you need. Then, pushpull it.

      Todd

      http://www.sketchucation.com/forums/scf/sas/Ruby/Picture%201.png

      posted in Plugins
      T
      todd burch
    • RE: The NEW SketchUp Community Forums ARE HERE!!!

      I perhaps picked the wrong user name. I got registered, and made a post, but it appears my stats did not carry over.

      Todd

      p.s. I used my userid as it displays here on this forum, telling me I am logged on.

      posted in SketchUp Discussions
      T
      todd burch
    • RE: Sketchup 7?

      I have no idea what's going to be in SketchUp V7. My money would be on these features:

      • Features that are aimed at the populace and that make it easy for them to populate Google Earth
      • Annoyances and bug fixes fixed
      • Dumbing down hard to use features
      • Dare I suppose it.... lockable .skp files
      • Fat Faces perhaps

      Todd

      posted in SketchUp Discussions
      T
      todd burch
    • RE: Outliner to Text?

      Haven't forgotten about this - just working on a higher priority project.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Outliner to Text?

      The script is written and even uploaded to smustard (but hidden). I need to check the packaging on it to be sure it's ready for prime time. I'll go over it this evening.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: Outliner to Text?

      Got one. I need to package it up. Works great. Even mimics the weird sort order.

      I'm thinking an xml file would be more interesting/purposeful. Perhaps I'll provide an option for text or xml. Right now it's tab delimited.

      Todd

      posted in Developers' Forum
      T
      todd burch
    • RE: So what do you think about the SCF?

      Oh Coen - you are my hero... πŸ˜’ (Oh, brother.)

      LOL.

      Yes, I lke the forums here. Not as tight and compact as the old @Last forum, but that's ok. I like the larger text entry box for sure.

      One of the pains with the old forums was actually getting a change made. That certainly is not a problem with this forum. Thank you and the other moderators.

      Whereever this forum evolves to is OK by me.

      Todd

      posted in SketchUp Discussions
      T
      todd burch
    • RE: [Plugin] SceneRename

      Fletch - you're looking in the VIEW menu, right?

      Todd

      posted in Plugins
      T
      todd burch
    • [Plugin] SceneRename

      Get it here: http://www.smustard.com/script/SceneRename

      Full tutorial on the site. It can renumber and rename-and-renumber.

      Enjoy, Todd

      posted in Plugins
      T
      todd burch
    • [Plugin] $ ExtendCloseLines

      This one is another in the series of CAD cleanup scripts. It's different from Closeopens and is more suited for Architectural CAD imports than CloseOpens.

      Available here with Tutorial and examples: http://www.smustard.com/script/ExtendCloseLines

      Todd

      posted in Plugins
      T
      todd burch
    • RE: I made a clock

      I wrote a clock that works in SketchUp, and I'm still waiting for my ticket!

      And Gai - that clock is correct two times a day!

      Todd

      posted in SketchUp Components
      T
      todd burch
    • Ross's Blueprint style

      Ross, I was on FormFonts the other day and looked at your blueprint styles. Very nice. The classic is great! Good job.

      Todd

      posted in SketchUp Components sketchup
      T
      todd burch
    • RE: Google sketchup for dummies

      Kapitel 17 ist mein Liebling!

      posted in Deutsch
      T
      todd burch
    • RE: Hello Everybody!!!

      "View new topics" is there - I just found it. It's on the left side, not the right side.

      posted in Corner Bar
      T
      todd burch
    • RE: Hello Everybody!!!

      Lookin' good SCF. I too would like the view new posts.

      Todd

      posted in Corner Bar
      T
      todd burch
    • RE: The Pro forum is gone

      No big deal - I understand. Not a problem.

      Todd

      Todd Burch

      posted in SketchUp Discussions
      T
      todd burch
    • RE: The Pro forum is gone

      @unknownuser said:

      Todd, I HAVE a backup of October 1st. The problem is importing the posts into the new forum. Each post is assigned a forum id which does not exist anymore, meaning I do not think it can be done. The only option is to install a board just for the sake of archiving, with all the potential security risks involved since I need to set all the permissions just for that one board again and that will take forever.
      This is just one of those things...

      Just pulling your chain Coen.

      Do you think the IDs can be translated? If the are in a PHP / mySQL database, then perhaps an SQL UPDATE statement is the answer. (I've been working with SQL since 1984 - I've written a few lines of it - just haven't messed with non-mainframe versions of RDBMSs (relation database management systems))

      If they are in a flat file, then Ruby can do that (which translates into "I can do it") - I would just need to know what the data looks like. How big is the file? Can it be FTPed? Do you have a list of the old IDs and how they map to the new IDs?

      Todd

      Todd Burch

      posted in SketchUp Discussions
      T
      todd burch
    • 1 / 1