⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • How to hide the maximize & minimize web-dialog button?

    12
    0 Szavazatok
    12 Hozzászólások
    1k Megtekintések
    tt_suT
    Didn't try. Then you'd have to hook into the windows messages. yuck
  • Group only edges from a face yet selectcted ?

    10
    0 Szavazatok
    10 Hozzászólások
    664 Megtekintések
    pingpinkP
    Hi , The process : Store Data - Components , Patterns , Panels of original data from Architect's Model Tag Part Number - Select Panels ,and distinguish different panels type Auto Open Patterns - To recheck the original design Re-Tag Part Number - The users have to change after checking Patterns , Different patterns have different tag numbers even though they are the same sizes. My expectation needs to " Store Data and Recheck Patterns later for a RE-TAG Number correctly " as a facade designer wants.
  • How to know if user has stopped orbiting camera?

    8
    0 Szavazatok
    8 Hozzászólások
    456 Megtekintések
    Dan RathbunD
    @chris fullmer said: ... suspend will tell you if the user has started using orbit or pan, ... Really? That is news to me. (The API docs do not say this.) AFAIK, a tool's suspend callback is called JUST BEFORE the tool becomes inactive, (so you can save stuff like your tool's state etc.,) and BEFORE the interruptor tool becomes active. Also.. because the Sketchup::Tools collection does not have Enumerable mixed in (and an each method defined,) there is no way to non-destructively read the last tool on the stack, nor even iterate the stack.
  • Find (3d point) intersection of 2 lines?

    2
    0 Szavazatok
    2 Hozzászólások
    503 Megtekintések
    TIGT
    Try point = Geom.intersect_line_line(edge1.line, edge2.line) You either get a point or nil if the two 'lines' don't intersect. Unlike an 'edge', a 'line' is infinite, so two 'edges' might not physically intersect even though their 'lines' do. If you get a point you can then test if it actually falls on an end point of an edge point == edge1.start.position point == edge2.end.position point == edge1.start.position point == edge2.end.position where true shows it is at a vertex AND if the point falls between the start/end of each edge, the test is... point.vector_to(edge1.start.position) == point.vector_to(edge1.end.position) point.vector_to(edge2.start.position) == point.vector_to(edge2.end.position) Note that getting true means that the point is not physically on the edge because the vectors are both in the same direction, and false means that the point is on the edge and between the start/end...
  • Display Schematic Models

    3
    0 Szavazatok
    3 Hozzászólások
    290 Megtekintések
    pingpinkP
    Thanks Dan ! , I never realized about this method. My supervisor wants me to switch schemes for " DESIGN COMPARE " at the same position to open and hide layers , then show all schemes by coding. The layers now are overlapped.If I can't do at the end I will do only Switch One by One. http://www.youtube.com/watch?v=ZffmxlB5dbk&feature=youtu.be
  • Load Component and Rotation

    7
    0 Szavazatok
    7 Hozzászólások
    574 Megtekintések
    pingpinkP
    I respect you !!! I'm a big fan of you.
  • Onload issue with web-dialog window on Mac.

    7
    0 Szavazatok
    7 Hozzászólások
    484 Megtekintések
    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 Szavazatok
    3 Hozzászólások
    210 Megtekintések
    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 Szavazatok
    4 Hozzászólások
    346 Megtekintések
    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 Szavazatok
    9 Hozzászólások
    468 Megtekintések
    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 Szavazatok
    8 Hozzászólások
    730 Megtekintések
    jolranJ
    JSONPadding Will try that. Thanks a lot!
  • Problem with removing letters from string

    10
    0 Szavazatok
    10 Hozzászólások
    470 Megtekintések
    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 Szavazatok
    7 Hozzászólások
    480 Megtekintések
    tt_suT
  • How to get Model Entities change event once?

    8
    0 Szavazatok
    8 Hozzászólások
    646 Megtekintések
    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 Szavazatok
    12 Hozzászólások
    2k Megtekintések
    jiminy-billy-bobJ
    Great, thanks !
  • Setting file types in the savepanel

    21
    0 Szavazatok
    21 Hozzászólások
    2k Megtekintések
    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 Szavazatok
    21 Hozzászólások
    4k Megtekintések
    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 Szavazatok
    3 Hozzászólások
    576 Megtekintések
    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 Szavazatok
    3 Hozzászólások
    319 Megtekintések
    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 Szavazatok
    6 Hozzászólások
    620 Megtekintések
    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.

Advertisement