Urasik Extensions | Lots of new extensions to check out Learn More
  • Silhouettes with Hidden Geometry Off

    SketchUp Discussions sketchup
    24
    0 Votes
    24 Posts
    10k Views
    Y
    thanks
  • Pulling attributes from a spreadsheet?

    Newbie Forum sketchup
    5
    0 Votes
    5 Posts
    360 Views
    A
    Thanks TIG for the snippets - perfect. For others, this is the code I have so far. It has lots of room for improvement, and I'm happy for others to improve, extend, and post back here. I assigned attributes to each face with a key/value of faceid/x. model = Sketchup.active_model entities = model.entities selection = model.selection #Define array faces = [] # choose either the selection, or the active model if model.selection.empty? # UI.messagebox "You have nothing selected. This will color all faces that are not grouped." entities = model.active_entities else entities = model.selection end #go through every entity, and if it is a face then add it to the faces array entities.each do |e| faces.push e if e.is_a? Sketchup;;Face end #Debug; how many faces are going to be shaded #UI.messagebox "No of faces in model/selection; " + faces.length.to_s #get the materials from a csv file which has corresonding faceids @filepath=UI.openpanel("Face Color Code Choose File...","","*.csv") if not @filepath puts "FACE COLOR CODE FILE - CANCELED." @go_on = false Sketchup.send_action("selectSelectionTool;") return nil else @go_on = true end if @go_on #read the file into the instance variable @alltext @alltext=IO.readlines(@filepath) #debug; how many lines/rows were in the file? #UI.messagebox "Number of rows in file is " + @alltext.length.to_s faces.each do |m| @currentfaceid = m.get_attribute("fn","faceid",nil) #UI.messagebox "@currentfaceid = " + @currentfaceid.to_s #UI.messagebox @face #now apply the material to each face 0.upto(@alltext.length-1) do |i| #beginning with 0 line = @alltext[i] if line line.strip! #remove whitespace line.chomp! #remove carriage returns # we'll assume csv file in the format 'faceid,material_name' # e.g. "...\n6,red\n7,green\n..." if line and @currentfaceid == line.split(",")[0] # e.g. "6" #Apply the material @matchedcolor = line.split(",")[1] m.material = @matchedcolor # set material - e.g. "red" m.back_material = @matchedcolor # set material - e.g. "red" ### you can add extra tests, make materials if not existing etc etc break ### we leave the do loop as we have a 'hit'. end end end end end The contents of the CSV file, for reference: faceid,material 1,CadetBlue 2,Aqua 3,DarkOrange 4,LawnGreen 5,Red 6,PowderBlue 7,Yellow Things that need improvement: make it executable script from a menu make it work on groups and not just faces pass the contents of the CSV into an array once rather than reading the file over and over and plenty of more things I'm sure!
  • Exterior Lighting

    Newbie Forum sketchup
    3
    0 Votes
    3 Posts
    263 Views
    L
    Thank you d12dozr and Ad Machine. I will check them all out.
  • How can i edit the terrain?

    Newbie Forum sketchup
    5
    0 Votes
    5 Posts
    341 Views
    GaieusG
    @adrienandre said: ...don't forget also to active the toggle terrain icon... I thought you did: @adrienandre said: ...it gave me a flat terrain even when I actived the "toogle terrain" icon...
  • 0 Votes
    3 Posts
    442 Views
    D
    If you have the model grouped so the tower is separate from the fins, you can use the Tape Measure tool to scale each group. Please see this link for more info (scroll down to "Scaling an Entire Model") Note that you need to "enter" the group that you wish to scale before you use the Tape Measure tool on it.
  • Built walls are are exact height, but there not??

    Newbie Forum sketchup
    28
    0 Votes
    28 Posts
    1k Views
    J
    Hi, Englanddesktop here. Thanks for your pep talk, I'm not the only person in the world with a SU problem. I had unfounded reason for doubting my ability. When this problem is solved by others or myself, there will be others. I will more than likely have other problems and mistakes but I have learnt a lot, maybe the hard way. It's nice to get help when you or I get an "unsolvable" problem. Thanks very much for your input. John
  • Is there a way to ....

    Google Earth sketchup
    2
    0 Votes
    2 Posts
    4k Views
    GaieusG
    Hi Lee, There is a "Get nearby models" in the latest version however that will not nake any difference between recently uploaded models and the ones that have been there for ages: http://sketchup.google.com/support/bin/answer.py?answer=116820
  • 0 Votes
    7 Posts
    846 Views
    GaieusG
    It might be the very tiny scales you are working in. SU tends not to create faces that would have as small edges as about 1 mm. Try to scale your whole drawing up by 10 (or even 100), create these intersections and extrusions and when ready, scale everything back.
  • Change the default material

    Newbie Forum sketchup
    2
    0 Votes
    2 Posts
    283 Views
    TIGT
    Like many display settings it is set in with current Style. Window > Styles click Model icon [small house] Current Style > Edit click Second Icon Button 'Face Settings' Front color and Back color icons show these current settings Click on each of them and choose new colors as desired There are several 'Picker' options available to you. When you are done Update Style with Changes [click circular-symbol button or main Style picture] You can save your Styles externally, for importation into other models, or set the Style[s] in your usual Template SKP, so it is then always set up as you like it in all new models...[image: IBEb_Capture.PNG]
  • Walkthrough speed issue

    SketchUp Discussions sketchup
    1
    0 Votes
    1 Posts
    129 Views
    No one has replied
  • My file seems empty...

    SketchUp Bug Reporting sketchup
    4
    0 Votes
    4 Posts
    1k Views
    GaieusG
    Don't be too happy yet. This means that your graphic card does not support OpenGL and your machine will perform slower with bigger/more complex models. Hopefully a driver update can help but maybe you even need to get a better card eventually.
  • Is there a Bezier plugin for Sketchup 6?

    Newbie Forum sketchup
    2
    0 Votes
    2 Posts
    190 Views
    GaieusG
    Hi HR, Here it is if you mean this one: http://forums.sketchucation.com/viewtopic.php?f=323&t=13563
  • Using sketchup for a light study

    Newbie Forum sketchup
    3
    0 Votes
    3 Posts
    1k Views
    A
    That is exactly what I was looking for! Thanks yet again man.
  • Colour overview

    Newbie Forum sketchup
    4
    0 Votes
    4 Posts
    231 Views
    K
    Hi TIG and MtnTrails, Thank's for your advices! The hint on changing the size of the colour thumbnails made me find out how to do: Firstly; chose medium size thumbnails, secondly; let the window get as small width as possible (it cant be smaller than a certain width). Now, all colours suddenly has a logic arrangement. Any other thumbnail size or window width make the colours show up in appearantly random order.
  • 0 Votes
    6 Posts
    665 Views
    simon le bonS
    [flash=628,360:1k0badql]http://www.youtube.com/v/sf0LprZpe1A[/flash:1k0badql] Consider taking a great advantage of those two excellent (and highly recommended) tools: CenterPoint v.1.200 by Todd Burch & Construction Line Tool v1.0 by Jim *s
  • Putting non-buildings onto GE? Help please.

    Google Earth sketchup
    6
    0 Votes
    6 Posts
    4k Views
    leedeeteeL
    @cosycat said: Have a look at Google fusion tables http://googleresearch.blogspot.com/2009/06/google-fusion-tables.html which does something similar for Gmaps Interesting link, thanks, but don't think you can customise the actual areas can you? They have to be single points as far as I can see?
  • Importing cad

    Newbie Forum sketchup
    2
    0 Votes
    2 Posts
    162 Views
    GaieusG
    Hi Richard, this seems to be the "Clipping issue". One reason for this is too large (kilometres or miles) geometry OR any geometry being this far from the origin. You can import cad files two ways; preserving the drawing origin or not preserving it. Before importing, check out the "Options" (in the file browser window) and uncheck this option so SU will place your model to the SU origin. BTW here you can also set the original drawing units so you may spare that scaling, too. Sometimes there are some stray edges or any geometry far away from the model (often drafters add this to the origin) which can still cause this effect. In this case, Zoom extents (Shift+Z) then select all (Ctrl+A) to see if anything suspicious is also selected somewhere far away from your model. Delete that bit of geometry and move everything to the origin.
  • Broken cardboard

    SketchUp Components, Materials & Styles sketchup
    3
    0 Votes
    3 Posts
    937 Views
    R
    thank you for the your help. I solved the problem with a bump map.
  • Scene / style entanglement

    SketchUp Discussions sketchup
    13
    0 Votes
    13 Posts
    1k Views
    brookefoxB
    @unknownuser said: By "Both Managers" do you mean Scenes and Styles? Yes. @unknownuser said: The styles manager would be annoying if it warned you everytime a style was changed. I take that update arrow circle thingy as a warning, and then one might even be explicitly warned if that setting is in place.
  • I introduce myself

    Newbie Forum sketchup
    6
    0 Votes
    6 Posts
    299 Views
    broomstickB
    @tridem said: @broomstick said: .. We are so few... ...and it's so difficult to know those few if they don't show their 'location' or use a recognizable nickname You're right! I thought I had set it