sketchucation logo sketchucation
    • Login
    1. Home
    2. TIG
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.8b introduces important bugfixes for Fredo's Extensions Update
    Offline
    • Profile
    • Following 0
    • Followers 12
    • Topics 264
    • Posts 19,746
    • Groups 6

    Posts

    Recent Best Controversial
    • RE: Roof.rb v1

      davekn

      Have you downloaded v1-1 that fixes some errors ?

      301 Moved Permanently

      favicon

      (www.sketchucation.com)

      This should get you somewhere. However, the accuracy of the 'rectangle' checking is perhaps causing some problems and I'm looking at ways of building in some 'tolerance'. Have you simply drawn a rectangle 'on the floor' and tried that ?

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      @alpro said:

      TIG, I'm still getting the same errors, after replacing the current version. Thanks for the quick reply to last post though. Hope you get it figured out, let me know if you need any additional info in regards to my computer specs. Thanks.
      Mike

      Are you sure you overwrote v1.0 with v1.1 ?
      No matter... put this attached file into you Plugins folder. It should fix the problem either way...

      301 Moved Permanently

      favicon

      (www.sketchucation.com)

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      @unknownuser said:

      ...I have tried the script as you asked and have posted the results.
      I tried Gable Ended Roof and Hipped Roof.
      Gable ended I picked the top face and one edge and got the attached error
      Hipped roof I get the following info in the ruby box...

      The previous post links to an updated version v1.1 that fixes the A:B glitch. The Gable and Pyramid tools only let you work on a horizontal rectangle. Sometimes what appears to be a rectangle isn't (as far as Ruby is concerned) I'm trying to come up with a 'tolerance' method...

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      @alpro said:

      TIG, here's a screen shot of my ruby console.
      Mike

      I've posted v1.1 that fixes your problem = http://www.sketchucation.com/forums/scf/viewtopic.php?f=153&t=1516
      Replace the current version with this one.

      At least that error report is fixed. Now for some other errors...

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      @unknownuser said:

      Just tried this on Vista also with SU Pro latest version and still does not work.

      This is a real mystery... but it shall be solved.

      If you open a new model, open the Ruby Console, make a rectangle, pushpull it into a box, select the top face and an edge belonging to that face (with Shift or Ctrl) and run the tool Roof...Gable..., then accept all of the dialog's defaults with an OK what happens ? Any error or console messages, is there a group made where the roof might be, etc.

      I appreciate that its not working is frustrating for you, BUT it's doubly frustrating for me when it seems to works in identical set-ups elsewhere without any hitch, and you're not giving me many clues as to what's wrong - except that, "it's not working..."

      I appreciate your feedback, but please can it be a bit more detailed...

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      @rhankc said:

      The only way I can get gable to respond is using a ^ before a specified height. The other techniques dont produce anything...
      After a few roof sessions, (keep making different roof modules) I get the image I posted earlier even though I have the edge and horizontal surface selected. It wont get over the message until I start a new file.

      IF you open a new model, open the Ruby Console and then make a rectangle + push'pulled to a volume, then run Roof...Gable and accept all of the defaults that appear in the dialog what happens ?

      With your 'non-rectangle' error... it's as if multiple editing make what is a rectangle slightly skewed. Maybe I need to build in some 'tolerance' as to what makes a 'rectangle'...

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      rhankc

      I think you are misunderstanding how to enter the roof 'slopes'. It is done differently for hip/mansard and gable/pyramid roofs.

      For a hip or mansard/sprocket roof you can only enter the roof slope as an angle in degrees [a number] e.g. 22.5, OR the slope as a ratio [separated by ':'] e.g. 2:5. For these types you CAN'T enter a ridge/apex height using a ^. If you do it should return an error thinking you've entered zero degrees

      For a gable or pyramid roof you can enter the angle or ratio as above OR additionally you can specify the ridge/apex height above the fascia in current units by prefixing it with a ^, e.g. ^1234 (here assuming mm this puts the ridge/apex at 1234mm high). Don't use a units suffix or try '/" - so 1234.5 (in mm) is OK as is 18 (in inches) or 1.5 (in feet) but NOT 1'6".

      When you make a hip or mansard you need to have one horizontal face selected otherwise you'll get error messages.

      When you make a gable you need to select one face that's both horizontal and forms a rectangle, AND also select an edge that's near where you want the 1st gable to be (that's needed to tell the tool which of the rectangle's sides are to form gables and which of them is the 1st one, since you can apply different settings to the 1st and 2nd gables).

      When you make a pyramid you need to select one face that's both horizontal and forms a rectangle, AND also select an edge that's on a side where you want the angle for the slope to be taken from - with a non-square pyramid the two pairs of opposing faces have different slopes so you need to do this to indicate which gets the degrees/ratio you've given. Note that you need to select one of this rectangle's edges even if you intend later to use ^1234 as the height of the apex instead of entering degrees or a ratio, as at the point where you set off the tool has no way of knowing what options you might choose later...

      Your item about it saying inches in the menu prompts and it showing it in feet is a function of SketchUp: if you are working in Architectural units - inches - and you enter 18" it's taken OK but when you reopen the dialog it will show 1' 6" - the prompt simply tells you that your current units are set to inches [or feet or cm or whatever] - SketchUp displays Architectural inches as feet+inches if it's >12".

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      Eric, you had trouble with the .mht file showing images.

      Does you Internet Options > Advanced window look like this ?
      It should.

      http://www.sketchucation.com/forums/scf/sas/Ruby/IOsettings.jpg

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      @marne said:

      works perfect for me. thank you, great script.

      i use xp sp 2 and SU 6.0.515 and it works, it must be anything else...

      Thanks for some positive feedback.

      Perhaps it's a script clash - this might show in the Console messages ?
      The script is packed but its classes include:
      class Geom::Vector3d >>> to_flat_angle
      class Geom::Point3d >>> is_on_face?
      class Sketchup::Face >>> offset_eaves(dist)
      and then...
      Roof itself has a class 'Roof' with methods:
      Roof::hip()
      Roof::mansard()
      Roof::gable()
      Roof::pyramid()
      Roof::get_slope()
      Roof::help()

      • plus for data manipulation...
        Roof::ordered_edge_points(face)

      Anyone know of clashing class/methods in other scripts etc ?

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      @unknownuser said:

      TIG, I tried it out at home and I get the same results as above.

      Both computers=
      PC
      XP service pack 2
      SU 6.0.515

      Same spec' as I have tested it on and it's perfect ! Very confusing...
      Videos cards [long-shot] ?

      Any Ruby Console Error Messages when it is failing ?

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      Thanks for the feedback so far - even if some of it's reporting problems...

      Can those of you getting problems please report back with PC/Mac ver, SUp version etc and exact nature of problem - e.g. "after dialog nothing gets made and there are no error dialogs either"... [it would help when you get the problems if you have the Ruby Console Window open and copy me in on any errors that pop up there too]... so I can see if there's a common problem...

      Works fine for me (and several others) with PC XP SP2 and Vista SUp 60515.

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      Thanks, have a good weekend too...

      posted in Plugins
      TIGT
      TIG
    • RE: Roof.rb v1

      @ehaflett said:

      TIG, this script is awesome. I tested it out a bit and it did everything I would expect it to do without a hitch. I work mostly in geographically large models where I need to build many houses in a neighborhood or along a steet and this will be a huge timesaver for me, especially on overhangs. I like that I can simply input the rise:run ratio and other desired dimensions and presto (I just need to learn the terminology a bit better, I'm a GIS guy by trade). Great guidance while working with it too, making sure things are selected correctly.

      I did notice that none of the images show up on your help page, is that something I overlooked at install?

      Solid work, thanks.
      Eric

      Thanks

      Not sure about the missing images in the Help mht file... It's a combined file type containing all images and text. What system are you on ? Here's a pdf of it anyway (for some yet to be fixed reason pdfs are about the only file format that won't open via ruby UI.openURL on Vista... so I made something I knew (thought !) would work) ! Unfortunately this pdf is much bigger too and you'll need to open it manually...

      Others please report any probs...

      301 Moved Permanently

      favicon

      (www.sketchucation.com)

      posted in Plugins
      TIGT
      TIG
    • Roof.rb v1

      Version 1 of my new script Roof.rb... (zipped)

      Click here: http://www.sketchucation.com/forums/scf/viewtopic.php?f=153&t=1516

      Please try and feedback...

      posted in Plugins
      TIGT
      TIG
    • RE: AutoCAD 06/SU6 compatibility issue?

      SketchUp currently imports dwg AutoCAD files in r2004 or earlier. If you have a newer version of AutoCAD SaveAs an earlier version - like r2004. If you have received a dwg from someone else you can download AutoDesk's free conversion tool 'DWG True View'... this lets you convert any release dwg into any other release dwg that you select...

      posted in SketchUp Discussions
      TIGT
      TIG
    • RE: Shut down automaticly

      @burkhard said:

      I have another question.
      Remember the calc.rb can be open from the Plugins menu.
      But if I close Sketchup the calculator does not automaticly close with.
      Is this fiasible ( viable,contrivable or whatever )?
      Burkhard

      You could make an observer for the model (v6 only). It would be made by the calc.rb script - if you open the calculator the observer is added to the model. It then watches for when the model closes... and removes itself and closes the calculator if it's open ?

      I haven't got an idea how to do it, BUT it should be do-able...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Random Delete?

      Another shameless plug... try my MatrixProximity script. That adds two functions. There are guides on use too - See Didier's site etc. See: http://www.crai.archi.fr/RubyLibraryDepot/Ruby/em_cam_page.htm

      'Matrix' places 1D, 2D and 3D arrays of a selected component, arrayed as you choose from a dialog, you can use fixed-spacing or randomized-about-a-spacing for the pattern in XYZ and also for the XYZ rotation and XYZ scaling/handing. If you make a random matrix of trees above a ground surface at the end you can 'drop' them onto that surface if desired...

      It's cousin loaded in the same script is 'Proximity', which lets you swap components for more-complex/less-complex ones, depending how far they are away from the camera. So for example you model a stadium with a simple component seat called 'seat-' and position you camera. Run Proximity and enter the camera-distance 'ranges' in the dialog and as long as you have 'family' components called 'seat+' and 'seat~', then the near and mid-distance ones get swapped for these - so the nearer the camera the more detail is seen. Make your image and swap the "seat"s back to their simplest one for general working. This helps keep poly counts low. It can be also used for trees, people, cars etc.

      posted in SketchUp Discussions
      TIGT
      TIG
    • RE: Change default material

      @burkhard said:

      Thanks TIG,

      but there's no change in the prompt box. I'll set the value to -10
      and the box dimensions to 3oo. The prompt window shows default settings : 100 and 0.

      ... and where do I have to copy these new material files. My tries show no results.

      thanks again Burkhard

      Here's a 'tweaked' version of the script. Read the ### parts to see what I've done. I added the material part in near the end after the faces are made, AND made the 'def' within a 'Box' class and then split the dialog variables as @xxx so they are defaulted at the first go but they are then remembered as last set during that session.


      box_pos[1].rb

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Change default material

      @burkhard said:

      It is possible to change the default material of the box within this script to opacity 30% automatically?
      ...and set the value for the z-axis to -10cm

      Burkhard

      values = [100.cm, 100.cm, 100.cm, 0.cm, 0.cm, -10.cm]
      
      new_material=model.materials.add("Burkhard_Material")
      new_material.color=[128,128,128] ### a mid-grey, adjust to suit...
      new_material.alpha=0.5 ### 0.5=50%, 1=opaque
      entities.each{|e|e.material=new_material if e.typename=="Face"}
      
      posted in Developers' Forum
      TIGT
      TIG
    • RE: Purge

      @unknownuser said:

      TIG, that is great. Works like a charm. Just run it, then run purgeall and poof.

      Thanks.

      At least that works ! Now for Roof.rb glitches. Perhaps you should all go to church and retry it ?

      posted in Developers' Forum
      TIGT
      TIG
    • 1 / 1