sketchucation logo sketchucation
    • Login
    1. Home
    2. azuby
    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.6b introduces important bugfixes for Fredo's Extensions Update
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 23
    • Posts 305
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Umlaut in file name

      Yeah, we really do have problems with our Umlauts and the "ß" ("s z", for things like "Straße" (street), because it isn't a "Strasse" or a "Strasze" - differen pronunciation; German writing Swiss do not use the "ß"). But that's not only a problem of Germans. French (and others) have problems with accents, people from northern European countries have problems with Eth, O with slash, A with - hm - ring?bubble?don'tknow 😉 ... Best solution would be a full unicode support for Sketchup. Ruby also has unicode support, but that also means, that you have to program with a unicode editor. For the Ruby interpreter you have the option "-K" - so it's "ruby -Ku ascript.rb" or you put on top of your main script:

      $KCODE = 'u'
      require 'jcode'
      

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: .rbs files not loading at all.

      Don't know, whether the "old" standard Ruby "require" is really needed for all scripts. If you do not need it at all, WHAT is Sketchup.require doing? Does it use the "old" "require"? If not you can think about replacing it dynamically:

      module Kernel
        def require *args
          Sketchup.require *args
        end
      end
      

      (not tested, maybe the asterisks are on wrong place)
      After that you can use the "old" require and get the behaviour of the Sketchup "require"

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Blocks - Kleiner Helfer

      Ähm naja, dann eben Breite. Das kommt vor allem daher, dass ich ja in der Programmierung nur mit Englisch zu tun hab und es dort "width" heißt. Das schleicht sich dann als "Weite" ein. Lässt sich auch schneller sprechen 😄 in diversen öhm Zuständen 😛

      Von der Website gibt es natürlich(?) kein Backup. Da denkt man nicht dran, wenn man sie direkt vom Server aus als Laufwerk bei sich auf dem Heimrechner einbindet.

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Add to existing sub-menu

      I also tried to reach / memorize submenus in my Extension Manager Plugin but without success.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Problem mit der Maus

      Weiß nicht, ob der Autor des Skripts das schon weiß, kannst es ihm ja im Ruby-Subforum erzählen - da ist auch gerade ein Thread zu dem Skript.

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Schematic Designer tool

      Fletch, you want more than just a Kinder Surprise 😄 - more than three wishes. As mozzie already mentioned, you can convert it on your own with specifying several options like separator and so on (';' is the regular one). For the "Read Excel file" version there would be the need to write an own Excel file parser - and hey! it's a Microsoft file format 😛 , evil! EVIL! 😄 Or the extension would become a Windows-only extension, if it has to read from Excel program.

      azuby

      posted in Developers' Forum
      A
      azuby
    • Blocks - Kleiner Helfer

      Tach,

      hatte heute einen wirklich langweiligen Abend, hab mich also mal wieder an eine kleine Fingerübung gewagt - 2 Stunden später kam Blocks raus, siehe hier.

      Blocks macht das: Ihr habt eine .csv- oder .txt-Datei mit Daten im Format

      x;y;z;weite;höhe;tiefe
      

      Die Erweiterung lässt euch solche Dateien auswählen, liest sie ein und erstellt Quader. Ganz einfach.

      Ich tue das bei Gelegenheit auch auf meine Webseite (die mir mein Provider "zurückgesetzt" hat - danke nochmal dafür 😞 ), vorerst klickt den Link oben an, um runterzuladen.

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Schematic Designer tool

      Because of a really boring evening I also tried to solve the problem, but maybe I've misunderstood it (description in German would be much better 😄 ). See attachment. Hope, there isn't already a tool called "Blocks"...

      azuby


      Blocks v1.0

      posted in Developers' Forum
      A
      azuby
    • RE: Texture.use_alpha?

      Put the file opening and read to the "transparent?" method. Because this way you 1. can close the file from within the instance when you're ready with analyse and 2. can react on changed png file.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Schematic Designer tool

      It would make the programming a bit more complicated, if you need rotation. If no need, I also would go the way with CSV file Didier mentioned, because this way the import also could be done on a Mac and without having Excel installed. And it's less complicated too instead of using Win32Api which needs to be installed (and only is available für -> Win).

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Schematic Designer tool

      ... or you work with Win32Api and a Excel program instance.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Shut down automaticly

      I think, you're talking about this script:
      http://www.crai.archi.fr/rubylibrarydepot/ruby/calc.rb

      I can't image observing the calculator from within Sketchup Ruby. The UI.openURL method seems to start a non-Ruby thread, so the call returns immediately to next step in Ruby script. Because of several problems using Ruby threads (green threads), I wouldn't use them (Sketchup freezes).

      An idea would be using the WebDialogs and embed a Javascript calculator. The WebDialog windows are observerable, they can react on several events and in combination with a model observer you can hide the window when opening a new model. If you close Sketchup, the WebDialog windows also will be closed.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Save skp file errors

      Have you also tried to use filenames without inverted comma / apostrophe?

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Frage zu schriften

      Jetzt ist mir da eine Firefox-Erweiterung wieder eingefallen, die das vielleicht kann: Firebug. Die ist für Webdesign und Seitenanalyse (Aufbau, Verschachtelung usw.) wirklich nett.

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Is there an "Undo" script?

      Some months ago I started a project called "Model History" I should go on developing 😉 The plugin lets you set (and so on ...) the actual status of your model and saves your model file for later usage. It's more a kind of version control plugin Have a look here. (I think, this isn't what your looking for)

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: UI.openURL(executable + params)

      Moin,

      you can't do this with Ruby threads, they let Sketchup freeze while your other application is running. The code would be

      Thread.new do `WHATEVER` end
      

      Also you can't use exec or fork. The only way would be writing a really simple server application, running it on localhost and call it from Sketchup.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: UI.openURL(executable + params)

      @unknownuser said:

      Azuby - how it will look using your backtick? 😆

      Germans are not funny 😛 , so I don't know, whether this is just fun question. Backticks are one of these little diacritic marks i.e. French use on "a", "e" and so on: "à", "è" ... Look my code above, I wrote **dir**. Between the backticks you write the call as you would write it in batch file or command line; for a coloured directory listing on Mac you could write ls -Glas or ls -G -l -a -s. If you do not need the result of the call, just information whether it failed or not, use the "system" call, if you want to get the result, than use backticks. And if you want to kill Sketchup, use "exec" 😉

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: UI.openURL(executable + params)

      Use the "system" call or backticks for this purpose, i.e.:

      s = system "dir" # -> true
      s = `dir` # -> a lot of stuff ;)
      

      Don't use "exec"!

      Executables on Mac do not have a special extension, because file extensions are not relevant for the OS in most cases. Executables are marked as executable in the file system. You can make Ruby scripts executable, i.e. by calling "chmod +x" AND writing down a Shebang line on top of the .rb file.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: [Plugin] Unhide ALL (Edges) - Inside Groups / Components ???

      I've written an extension, unfortunately my web provider had a problem and my website has old content 😞 (I'll fix this).

      azuby


      HideEdges - Hides/Unhides edges of selected elements

      posted in Plugins
      A
      azuby
    • RE: Frage zu schriften

      Für den Firefox gibt es diverse Developer-Tools, mit denen man sehr viel anstellen kann. Ich weiß allerdings nicht mehr so genau, welche wirklich hilfreich sind.

      Dass du die Schrift nicht im HTML-Code findest, könnte daran liegen, dass die da nach neueren Spezifikationen (vor allem XHTML) nix zu suchen hat, sondern eher in die Style-Definitionen gehört (also CSS-Dateien).

      azuby

      posted in Deutsch
      A
      azuby
    • 1
    • 2
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 11 / 16