ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Load Component and Rotation

    7
    0 Votes
    7 Posts
    496 Views
    pingpinkP
    I respect you !!! I'm a big fan of you.
  • Onload issue with web-dialog window on Mac.

    7
    0 Votes
    7 Posts
    439 Views
    renderizaR
    @tt_su said: That will prevent the initial white dialog under OSX. Yes I did that and received feedback from a Mac user that the dialog was loading ok. @tt_su said: On a sidenote, I always recommend jQuery or similar frameworks. They take care of most cross compatibility issues - even in this case because jQuery.ready() event uses the DOM ready event which doesn't cause any white out. I will need to study how to implement this for future...thanks!
  • Layers to Groups

    3
    0 Votes
    3 Posts
    189 Views
    Dan RathbunD
    Too many recursion levels can be a problem (with memory I think.) We have discussed this in other threads. Do a forum search on "recursion".
  • Offset top face only...need help!

    4
    0 Votes
    4 Posts
    296 Views
    renderizaR
    @tig said: Read my SmartOffset code to see how I offset the edges of a given face... That is by no means an easy task but I will try to understand what you wrote. Isn't there a 1st grader version? @tt_su said: Side note - Ruby is very slow. You'll find using the SketchUp API's .distance method much faster than doing your own length calculation. At least if you do this for a somewhat large set of entities. That is good to know thanks!
  • Help me! [Resolved ...for the moment :) ]

    9
    0 Votes
    9 Posts
    354 Views
    pilouP
    No it's was not ! But now seems you have made something , because seems that works! Bravo for that! Maybe these particular advertisements enter in conflict ? PS In any case : the second line of links at the bottom page seems a good idea! (and not a big effort of programming!
  • [WEBDIALOG] getJSON from source folder

    8
    0 Votes
    8 Posts
    641 Views
    jolranJ
    JSONPadding Will try that. Thanks a lot!
  • Problem with removing letters from string

    10
    0 Votes
    10 Posts
    369 Views
    renderizaR
    @tig said: SO THEN **b = a.split('')[4..-1].join('')** o there should do it, even with strings containing non-ASCII characters Great advice!...thank you guys!
  • ComponentInstance global transformation problem

    7
    0 Votes
    7 Posts
    350 Views
    tt_suT
  • How to get Model Entities change event once?

    8
    0 Votes
    8 Posts
    463 Views
    fuzzybroF
    Thanks, Dan! Your idea worked out very well using "onTransactionCommit" event of the Model Observer. On every commit event I simply reset the "changed" flag and then do the rest as you proposed.
  • Add_group() + outliner = bugsplat

    12
    0 Votes
    12 Posts
    2k Views
    jiminy-billy-bobJ
    Great, thanks !
  • Setting file types in the savepanel

    21
    0 Votes
    21 Posts
    2k Views
    T
    Sorry to drudge up old news, but this is an embarrassingly old issue, be nice to have a filter option in the API by now. Here was my solution because I didn't like the fact that it could possibly overwrite a file accidentally using TIGs approach (untitled != untitled.txt for example). Anyhow it can be a burden to hit save twice, but I'd rather do that 100x then accidentally save over something important. Where: EXT = "txt" default_dir = "c;\\temp\\" default_file = "untitled" The following while loop: name_valid = false while name_valid == false path_to_save_to = UI.savepanel("Save Code File", default_dir, default_file) #path_to_save_to = path_to_save_to.tr("\\","/") # This maybe required. fileext = File.extname(path_to_save_to) # filename with prefix stripped filebase = File.basename(path_to_save_to, ".#{EXT}") #puts fileext.inspect if fileext == "" || fileext == nil default_file = filebase + ".#{EXT}" UI.messagebox "Oops! Including the file extension '#{EXT}'\nThis is an embarrassing workaround...\nPlease hit save again." #puts default_file.inspect else filename = filebase + ".#{EXT}" path_to_save_to = File.dirname(path_to_save_to) + "\\" + filename name_valid = true end end
  • Spot Elevation Markers Plugin - Dev Help/Review

    21
    0 Votes
    21 Posts
    3k Views
    M
    @mitcorb oslocadiz is correct, the script is not at a point where it's useful in any way. I'm just in the first stages of learning Ruby, so this post was more as a way of asking the skilled developers in the forum for advice and feedback, not as a usable script at this point. Furthermore, TIG's produced (as usual) a very capable script that does Datum measurements, I'd recommend that. I may shelf this project for the time being anyway, as it's a little to ambitious for my knowledge at the moment. I wish I knew more, but I just haven't had the time to devote to it enough, or enough understanding at this point. Thanks for the interest, Matt
  • Ruby FFI, Need Suggestions!

    3
    0 Votes
    3 Posts
    505 Views
    A
    @tt_su said: I would recommend compiling it under your own namespace - to avoid version conflict if anyone else should try to load a different version. Ok, I guess that's the way I should go @tt_su said: The problem is that every SketchUp extension developer isn't on this forum to check this list. Lazy people @tt_su said: That somewhat that path I took with TT_Lib, but trust me - it will generate a lot of "This plugins doesn't work!!!111!!1" - because people never read the instructions. I've started expanding the library check with my plugins so the users will get a webdialog that describes why the plugin didn't load and direct link to the require libraries. That takes cares of most of the people who tries to install it. Even I my self got one of these messages before Good results require some work
  • Scenes not behaving correctly?!?

    3
    0 Votes
    3 Posts
    257 Views
    A
    @renderiza said: @agamemnus said: I created some code to render a helicopter. Unfortunately, for some blasted reason, most of the scenes are not being rendered correctly. Help! Can you be more specific when you say "rendered correctly" because I am not 100% sure what you mean by this. Do you mean the scene style rendering options where not updated? Yes... all of the camera didn't update, so the image doesn't render as intended. Had to do "view.camera = pages.selected_page.camera" to get it to work correctly.
  • Assigning Textures

    6
    0 Votes
    6 Posts
    523 Views
    s_k_e_t_c_h_yS
    Thanks Jolran, You're right that was a short coming in logic, but it was making it into the 'if' anyway. The issue is you can only use .texture to load images, not skm's. TIG wrote a module to extract a .skm and return the texture within so I'm currently integrating that library.
  • You are now editing multiple components

    56
    0 Votes
    56 Posts
    4k Views
    ashscottA
    The final product and discussion is now available over here: http://sketchucation.com/forums/viewtopic.php?f=323&t=54082
  • Sketchup URL scheme / pseudo protocol

    4
    0 Votes
    4 Posts
    503 Views
    TIGT
    A URL like: file:///C:/Program Files/SketchUp/SketchUp 2013/SketchUp.exe should open SketchUp [with a new file from a template] when run in IE, but the user will be prompted to let it execute because any exe has to have express permission - these are strict internet protocols to protect from virus/trojans etc that might otherwise do things without the user's prior knowledge... In other browsers like Firefox/Chrome you'll get different results, but all will ask the user what to do - usually they as you if you want to save the file NOT run it ! ...
  • Modifying Web-Dialog content size possible?

    4
    0 Votes
    4 Posts
    256 Views
    renderizaR
    @aerilius said: Why do I reply here I'm not a god… I am currently building a temple on your honor...at least a SketchUp model of it for sure! Thanks!
  • Axis Orientation

    3
    0 Votes
    3 Posts
    217 Views
    timberlineT
    @tt_su said: In SketchUp everything is built around Z being up. You will probably find it easier to convert imported geometry to match this and have the exporter adjust the axis again later for the target application. Thank you for this info. After a Google search I started to assume that this would be the case, but you have confirmed it. Being a beginner in SU I didn't want to start coding and hacking a 'square peg into a round hole'. I will code a function to transform the geometry between the two programs so that the data will react to each of the programs assumptions.
  • Problem with face.normal directions...help!

    10
    0 Votes
    10 Posts
    446 Views
    TIGT
    Back to the question... NorthEast Quadrant: normal.y>0 normal.x>0 SouthEast Quadrant: normal.y<0 normal.x>0 SouthWest Quadrant: normal.y<0 normal.x<0 NorthWest Quadrant: normal.y>0 normal.x<0 As you said: Due North: normal.y==1 normal.x==0 Due East: normal.y==0 normal.x==1 Due South: normal.y==-1 normal.x==0 Due West: normal.y==0 normal.x==-1 Exactly Vertical: normal.z==0 Upwards Facing: normal.z>0 Downwards Facing: normal.z<0 Exactly Up: normal.z==1 Exactly Down: normal.z==-1

Advertisement