ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Font of text

    4
    0 Votes
    4 Posts
    301 Views
    Chris FullmerC
    Hi pout, there is no = sign on the method. (I do not know how to use it though). You might also see if the text object has an attribute library attached to it? I don't know if it does, its just a thought. Maybe font could be controlled there? But I would guess the method set_last_size might be better? Chris
  • How can import and locate the components by ruby script?

    4
    0 Votes
    4 Posts
    1k Views
    W
    The information is vrey important .And I want to import some components into coordinates by ruby scripts and locate the components by parameter form the user,What methods need to refer? Please give me some suggestions.Thanks! The size of components add a lot of difficulties,because space of the components need to taken in my ruby script.Now ,I have trouble to deal with that. Does some solutions be gave?
  • Announcement: Sketchup Virtual Builder **UPDATE**

    6
    0 Votes
    6 Posts
    1k Views
    P
    My apoligizes for the lack on information. I hope the explanation below gives a better insight on what the plugin does. About the Sketchup Virtual Builder Plugin Light: With this plugin you can add planning-scheduling information to the Sketchup model. The user can create "tasks" (aka xD Objects) in Sketchup in a webdialog interface. These tasks are specified by a startdate (when the works start) and end date (when the works finish) a name (what are the works) and a 4D Type (how is it respresented visually) Each task can be linked to it's visual representation in Sketchup. Eg. the Sketchup Entity that is the decking of the first floor can be virtually linked (by clicking a button) to the task "Decking first floor" This can be done for all tasks and all entities in the Sketchup model. Like that entities in Sketchup can be visualized in time. With the plugin the user can select a date (like 11-09-2010) in Sketchup. The plugin then calculates for each Sketchup entity what his status is (depending on the task it is linked to) So on the selected date a Sketchup entity can already been build, or not yet build, or being build, or being demolished, or already demolished, etc. Thus the selected date will show, in Sketchup, the status of the model on that date (entities that have not yet been build according to their task will not be shown, other will be shown as being build, and so on) This way the user can see the project getting build in time and check if everything is possible or if there will be construction scheduling problems. Some key functionalities: Link-Unlink Sketchup entities to user-defined tasks Choose a 4D Type and specify the colors: Eg. construction: when not yet started don't show the SU entities, when being constructed show the entities in transparent red, when construction is finished show the entities in original color Eg. demolition: before being demolished show the entities in original color, when being demolished show the entities in trasnparent blue, when demolishing is finished don't show the entities Automatically play the project scheduling: automatically shows the construction progress in Sketchup Go Back/Forward in time: by month/quarter/year/2 years Automatically create scenes for the task dates and update the view when clicking on a scene and use Sketchup scenes functionalities (to use different viewpoints for example) Automatically generate project images: automatically create an image for each date of the project Show Shadows: Shows the shadows of the selected date for the model. ... No original information is lost. At any time the user can reset the model to it's original colors and show all entities. With the full version: It is possible to directly use Microsoft Project-Primavera-Powerproject scheduling information to link the Sketchup entities to. (no import of information) Below is a HD youtube movie link and a link to a 1024*768 movie HD Youtube 1024*768 Hope this helps! Regards and thanx
  • Yet another SavePanel question

    5
    0 Votes
    5 Posts
    243 Views
    thomthomT
    Test the return value. The manual has been wrong before. It might be false or en empty string.
  • How to select everything touching a bounding box?

    6
    0 Votes
    6 Posts
    405 Views
    Chris FullmerC
    I doubt that anyone has published a helper method to do exactly what you are looking for. But you have the logic correct. First clear the selection (in case the user has something selected). Then search through all entities and find the ones on the wrong side of x. Then add all those to the selection set. ` model = Sketchup.active_model ents = model.active_entities sel = model.selection sel.clear! ents.each do |e| if e is on the wrong side of x- Add your code here sel.add e end end` Everything in that "your code ghoes here" part needs to decide what type of entity is being looked at and then you have to specify how to determine if that entity is on the wrong side of x. To simplify it, you could just look at the bounding box of each entity and determins if the center of the bounding box is on the wrong side of x. If it is, then add it. That would be the simplest way and would look something like this: if e.bounds.center[0] > my_x sel.add e end Chris I guess I pretty much wrote the whole thing, so I might as well just finish it up. Here is a whole little snippet of working code: ` model = Sketchup.active_model ents = model.active_entities sel = model.selection sel.clear my_x = 0.0 ents.each do |e| if e.bounds.center[0] > my_x sel.add e end end`
  • About Mysql and Ruby (it's working)

    2
    0 Votes
    2 Posts
    717 Views
    Chris FullmerC
    Ooohhh, this looks good! too.....many....cool.....projects, .....not................enough....time.......in...the..............day. <chris dies>
  • How to use Geom::Transformation.rotation?

    5
    0 Votes
    5 Posts
    1k Views
    thomthomT
    @wpd said: Is there any mechanism for feeding back additions and clarifications to the Sketchup documentation? I'd be glad to write something about the meaning of the point and vector arguments and about rotating using the right hand rule. Even a simple example of rotating a line or a face (one that had been written using 45.degrees) would have gone a long way to getting me where I wanted to go much sooner. I second this. Transformations sounded greek to me. Still does. "Translation" does a move..? I'd never have guessed that.
  • Script for Nodes / Vertices to Point (Guidepoint) ???

    4
    0 Votes
    4 Posts
    256 Views
    R
    Hi TIG, I am Ruturaj Patil. from Kolhapur. this Vertex+.rb its really nice Now i am Work really well. Thanks
  • Does the method related long of models or components exist?

    3
    0 Votes
    3 Posts
    118 Views
    W
    @chris fullmer said: Hi winzard, yes you can controol those things. It is all in Transformations. Or if you you just want the z height of something, you can also iterate through all vertices and compare their heights. Take the highest and loset z values and compare them to see how tall the object is. Do the same for lengths. Or you can also get the bounding box of an object and then use the boundingbox methods to get the length and size of the bounding box. More info would help narrow down the best answer, Chris Thanks !The information is great help to me.
  • Is there a plugin that closes faces on curves?

    7
    0 Votes
    7 Posts
    379 Views
    EscapeArtistE
    Got it sorted out. I tried "Loft" but for some reason it wouldn't work on the curves (they were welded), that's why I started looking for the "Curvestitcher" type plugin. I tried welding them and grouping them separately so that there was no interfering geometry, but "loft" didn't work again. Odd, I usually can figure out what I did wrong. To get them to stitch properly I had to select each edge for the curve to be stitched in the same order, i.e. bottom to top, and then weld them. This got the stitcher plugin to do what I needed.
  • Ruby Uninstaller - Is it needed...?

    5
    0 Votes
    5 Posts
    709 Views
    A
    @chris fullmer said: Do you ever turn off any plugins through the extensions list in the preferences menu? Hi Chris, I don't think I have ever turned on the "Google Earth Ocean Modeling" extension. Also, while we're on the subject of the Extensions list, the description of the "Ruby Script Examples" is out of date; in v7 it describes three tools (Draw->Box, Plugins->Cost and Camera->Animations) and omits Point At Center (in contextmenu.rb), linetool.rb, and selection.rb. I suspect Google didn't update it in the v7 release because it would have meant updating all the translation files too, which key their translation entries from the exact English text. If they leave the English alone, nothing breaks and everything is uniformly out of date and the workaround is to "tick every checkbox in the list" to be able to get Point At Center enabled. Myself, I find that sloppy. Understandable, but sloppy. Also, do any of the plugin developers use this feature? Are there any plugins besides the ones Google provides in the installation that actually use this feature? I'm writing an article on how to use it and if anyone already does, I'd like to mention either the developer or their scripts by name.
  • Debugging WebDialogs - View Rendered Source

    4
    0 Votes
    4 Posts
    363 Views
    thomthomT
    @cphillips said: I have had good luck with Firebug lite. http://getfirebug.com/lite.html Ah! Firebug is one of my fav Firefox extensions. This Lite version looks very interesting!
  • (REQ) Zoom to snap

    4
    0 Votes
    4 Posts
    278 Views
    EarthMoverE
    Thanks Escape Artist and TIG. I have zoom to selected and I was looking for a way to zoom to an inference snap.
  • Help plugin Modelur

    7
    0 Votes
    7 Posts
    198 Views
    F
    thanks i have firefox, is correct explorer 7 for win e safari 3.0 or later for mac. Now i try on mac. Flyman
  • WebDialog show_modal on Mac

    3
    0 Votes
    3 Posts
    233 Views
    J
    Thanks Whaat.
  • Component names

    11
    0 Votes
    11 Posts
    323 Views
    chrisglasierC
    @chrisglasier said: I'll get back on it tomorrow. In the meantime thanks for your help. Chris Here's the result: # Lists components and groups (with hidden status) in a scene @dlg.add_action_callback("findComponents") {|d, p| model = Sketchup.active_model entities = model.active_entities a = 0 array = [] entities.each do |entity| if entity.class == Sketchup;;Group || entity.class == Sketchup;;ComponentInstance if entity.layer.visible? array[a] = [] if entity.class == Sketchup;;ComponentInstance array[a][0] = entity.definition.name end if entity.class == Sketchup;;Group array[a][0] = entity.name end array[a][1] = entity.hidden? array[a] = array[a].join(",") a+=1 end #if class end # if visible end #loop array = array.join(";") cmd = "receiveComponents('#{array}');" @dlg.execute_script (cmd) } [image: jrTi_screenMachine04.jpg] Tally ho! Chris
  • Universal Camera

    2
    0 Votes
    2 Posts
    259 Views
    Chris FullmerC
    Yup, that is the film and stage plugin. http://sketchup.google.com/download/previousplugins.html Down about 1/2 the page under "Functionality Enhancement" Once you install it, look for it under "Camera" and choose "Add Camera" or one of the other options, Chris
  • Refresh and stop inside a long routine

    7
    0 Votes
    7 Posts
    289 Views
    TIGT
    Jim's idea of sub-setting works to an extent. See my Roof.rb - it asks for details, makes the roof's form, then displays it with default materials and then asks for materials in a dialog and redisplays it with the materials. It is the user input that causes the pause and the screen to refresh. Using model.start_operation ... model.commit_operation with your clac's might help but it could mean multiple undo's ?
  • Scene maker

    4
    0 Votes
    4 Posts
    576 Views
    chrisglasierC
    @chrisglasier said: I feel quite despondent that I continue to fail to explain namesets adequately but I will soldier on with a good old British stiff upper lip! Chris A couple of members told me privately that taking a look at "Operative content" helped. Thanks ... Chris
  • Are there any .3ds exporters free or paid?

    11
    0 Votes
    11 Posts
    415 Views
    P
    I have found a very good exporter to .lwo: http://www.flay.com/GetDetail.cfm?ID=2362 In fact, I have finally exported to Blender my more complex model. Of course, no textures, it's a work you must do manually later. But it's the best free solution I have ever seen

Advertisement