Sketchucation Tools 5.0.7 | Licensing improvements and bug fixes Learn More

Subcategories

  • No decscription available

    20 Topics
    462 Posts
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • Procs and lambdas

    5
    0 Votes
    5 Posts
    288 Views
    jolranJ
    @unknownuser said: What does "reuse the iteration" mean? Hm. maybe my explanations and english where bad. Hash.each{|k, v| v.do something } is called an "iteration", right? Iterate a Hash. Depending on something do the same iteration on other Hash with different values. Seams like waste retyping the same code again.. I know you are asking why I don't pass in a nested Hash, or array and just do everything in 1 go. In this case I just cant.
  • Match Photo API?

    9
    0 Votes
    9 Posts
    495 Views
    T
    Any other ways you guys can think of?
  • Adding items to an existing sub menu

    4
    0 Votes
    4 Posts
    391 Views
    J
    @sdmitch said: So even though the global variable retains lts value, the entity it references doesn't exist? I don't know the internals. But as yoou noticed, even when the global variable appears to reference a valid menu object, new items are not added after some short amount of time.
  • Access to Ruby standard library from scripts?

    3
    0 Votes
    3 Posts
    632 Views
    thomthomT
    Standard Library isn't compatible with SketchUp Ruby. For instance, the Set class that SketchUp bundle isn't compatible with the STL Set class.
  • Get materials from definition (through file operation).

    9
    0 Votes
    9 Posts
    417 Views
    jolranJ
    @unknownuser said: OK.. then why not ALSO have a premade collection of Materials in a "plugins/folder/materials" directory ? Might be better to grab the materials from components in this case. The idea is that the end user should be able to add new components to that folder and everything updates. Anyway, I "sort of" have it working already now with option 3 (wich was pointed out earlier). Thanks for the suggestion.
  • Identification method

    7
    0 Votes
    7 Posts
    341 Views
    Dan RathbunD
    (1) Please go to the User Control Panel and fill in the statistics so we can better know about your level and use of SketchUp. (2) Follow the Guide to learn standard Ruby basics, then simple SketchUp Ruby projects, before attempting advanced projects. If you are attempting to program manifold solid features with or for the SketchUp Free edition, then you will need to be a very advanced programmer. Look at the code that others have done in this area first. (It can save you a lot of time.)
  • SourceTree Git Client for Window - Beta Signup

    4
    0 Votes
    4 Posts
    418 Views
    thomthomT
    Aye.
  • [Code] Quick Reference Card in a WebDialog

    15
    0 Votes
    15 Posts
    1k Views
    S
    @driven said: @slbaumgartner said: John, do you have a custom WebKit installed? Or some kind of PDF viewer plugin? Are you insinuating that I may have tampered with my SU instal;) I have the standard WebKit SU WebDialog doesn't seem to use Safari's WebKit built-in PDF — from file “”. MIME Type Description Extensions application/pdf Portable Document Format pdf but instead seems to be using Adobe Acrobat and Reader Plug-in Adobe Acrobat and Reader Plug-in for Web Browsers, Version 9.5.2 — from file “AdobePDFViewer.plugin”. Nice plugin scanner, John! I got Adobe Acrobat and Reader Plug-in for Web Browsers, Version 9.0.0 — from file “AdobePDFViewer.plugin”. So maybe there's a version sensitivity involved? In any case, it seems to support Dan's feeling that PDF display via WebDialog is not reliable from machine to machine.. Steve
  • Save dialog causes bug splat

    3
    0 Votes
    3 Posts
    184 Views
    thomthomT
    Does it happen if you have only your plugin loaded?
  • Stop SketchUp from asking to save file before closing?

    7
    0 Votes
    7 Posts
    558 Views
    renderizaR
    Thank you so much...This solved my problem! The one I am using is your second suggestion since the revert method didn't produce what I wanted. The time it takes to save is not much so I am happy. Again thanks!
  • Make Save and Saveas toolbar

    4
    0 Votes
    4 Posts
    322 Views
    renderizaR
    Just in case here was a discussion about this topic I happened to find. https://groups.google.com/forum/#!msg/sketchupruby/ymKyqD_nxBU/AczVTLjFld4J
  • Small console error?

    2
    0 Votes
    2 Posts
    152 Views
    thomthomT
    It's an debug message from V-Ray for SketchUp.
  • How to make a frame/dialog/window always on top?

    23
    0 Votes
    23 Posts
    4k Views
    A
    @alexmojaki said: Incidentally, I haven't tested any of this on Windows yet, so we'll see what happens when I try there. This might not be over yet. Aaaand...I'm back! Indeed, this solution doesn't really work on Windows, because as soon as window.blur() is called, it doesn't just remove focus from the dialog, but from the whole Sketchup application! Sketchup goes into the background, yet somehow it is the window that is open according to the taskbar, and if you click on it in the taskbar to try and reopen it it minimises it.
  • Ruby get slope of a surface

    8
    0 Votes
    8 Posts
    629 Views
    Dan RathbunD
    Are you still using SketchUp 6 Pro ? There was a bug in the Geom::Vector3d#angle_between() method that was fixed sometime in the 7.x branch.
  • Pushing and popping a tool works in many but not all cases

    5
    0 Votes
    5 Posts
    298 Views
    Y
    I've decided to abandon the tool route. By running outside the tool stack I am able to change the view asynchronously, so the user can navigate without having to explicitly invoke or change tool modes. It's a much more fluid experience, and with the exception of a few minor cases that I think I can work around, it doesn't disrupt tool operation. Thank you for the useful tips, everyone. This is a really fantastic forum!
  • Using mysql in plugin sketchup

    7
    0 Votes
    7 Posts
    538 Views
    Dan RathbunD
    A component is a skp file that is loaded into SketchUp, from either a local directory (treated as a library,) or from a remote website. Encapsulting skp files within another file container just adds unneeded complexity. If you wish you CAN have a database that keeps track of the directory of components.
  • Best way to save variabls in an ini

    11
    0 Votes
    11 Posts
    2k Views
    D
    @tig said: If the text is 'fixed', but occasionally editable by the user to customize settings, then a file named 'Gcode.ini' could be kept with the .RB file: the user edits that and your code reads its contents as it loads. The text is 'fixed' for a single 3D printer. But one user mey have more then one printer. @aerilius said: but load evals in the top level namespace, so you would have to use constants like DFI1::GCode::File_header to access you plugin's namespace (no local variables, no global variables). Well, I put the load File.join(File.dirname(FILE),'Gcode.ini') inside the class GcodeExporter - and it works - no need for "::" just use the constants. That doesn't mean it is good practice nor that it will work in future versions of sketchup but - 1)it works. 2) it is very simple 3) it gets the job done quickly
  • What defines an identity transformation?

    17
    0 Votes
    17 Posts
    781 Views
    Dan RathbunD
    Which also leads to the conclusion that the Geom::Transformation class needs a properly overriden comparison methods <=>(), ==(), and eql?() ...
  • Move Vertices to Whole Number Coords?

    3
    0 Votes
    3 Posts
    400 Views
    J
    @dan rathbun said: My 1st advice.. do not use the SketchUp API's Set class (because it's a thin wrapper around a C++ collection,) and you cannot be sure of the order of it's elements, especially if you will be sync'ing to another Ruby-side collection such as an Array. Yeah, that seemed to be the problem - Sets are not ordered. Thanks Dan.
  • Finding start and end point of a component

    4
    0 Votes
    4 Posts
    295 Views
    D
    This @tig said: (pt1.transform!(tr) and pt2.transform!(tr)) worked very nicely. Thank you.

Advertisement