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
    • Organizing files for multiple Sketchup versions / computers

      Well folks, its not just for Ruby scripts - I think you also can try it with Components directories etc.

      Using Junctions - Windows >= 2000

      a) Your file system needs to be NTFS!
      b) Download the Junction tool from the Microsoft page: http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
      c) You do not need to install the tool, just copy it to your Sketchup directory.
      d) Move i.e. the Sketchup Tools directory to 😄
      e) Open the command line, change to Sketchup directory.
      f) Type:

      junction Tools C;\Tools
      

      g) Run Sketchup. Nothing should have changed.

      If you want to remove the Tools junction from Sketchup directory, type

      junction -d Tools
      

      Only the junction will be removed, not C:\Tools

      Why this is useful? :: If you run mutliple Sketchup versions on the same computer, all of them can have access on exactly the same files. You only need to update one directory. You will have the same ressources in your different Sketchup version. And if you haven't user permission to write to Sketchup directory, you can ask your admin to set the junction to your user directory 😄

      An idea for small companies / networks :: To have all your computers using the same ressources, you can link net ressources to drive letters an than hook them to Sketchup using junctions. So you could use a NAS to store all the relevant stuff.

      Using Symlinks - Mac OS X

      ... coming soon, if it works ...

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: How to read/parse XML files inside SU

      It depends on what the XML structure and data represent. For processing XML there are some Ruby libraries, i. e. REXML (but REXML seems to be a bit slow). I have used it for ModelHistory which isn't in the wild because I'm lazy 😉

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Deselect per Rubyskript
      Sketchup.active_model.selection.clear
      

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Version 5 class listing - ANSWERED

      "sketchup.puts" - what's that?

      What's not OK with the code snippet? It lists you all constants registered for the current session (and because a class (name) is a constant, the list could be useful). If you only want to see the "build-in" constants, clear the Plugins/Tools directory and run the code.

      For the OS language check ENV or explore the Langhandler class.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Excel to SU ( 29/7/08 version )

      Have you thought about programming platform independent? Maybe the roo library could help. Because it also can handle OpenOffice documents.

      azuby

      posted in Developers' Forum
      A
      azuby
    • RE: Die franzosen...

      Liebste französische Mit-EU-Bürger, ich fange jetzt nicht an mit Elsaß/Lothringen 🤣 und komme gleich zum Punkt: Qualität, nicht Quantität. 💚

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Bei wem läuft SketchUp auf einem Mac?

      extensionmanager.rb - wofür brauchst du den überhaupt?

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Bei wem läuft SketchUp auf einem Mac?

      Ich will nur mal kurz klarstellen: Es gibt nur einen Gott - BelaFarinRod 😍

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Bei wem läuft SketchUp auf einem Mac?

      Ich habe dann doch mal meinen Wohnzimmer-Mac gestartet. Die Menü-Einträge, sowohl im Plugins- als auch im Rechtsklick-Menü sind zu sehen.

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Mac: Von FileMaker aus SketchUp mit Ruby-Skripten steuern

      Es handelt sich nicht um die/eine Mac-Ruby-Konsole, sondern um die Sketchup-Ruby-Konsole (egal welches Betriebssystem).

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Fenster unauffindbar
      1. Geht prinzipiell mit einigen Biegungen. Allerdings frage ich mich, welchen Nutzen das hat.

      2. Falsch verstanden. In deinem Fall (Grund: Mac) wirst du momentan nicht umhin kommen, die Ruby-Konsole in Sketchup derartig zu nutzen. Es ging mir darum, dass die Art und Weise, Oberflächen roboterartig fernzusteuern, sehr unkonventionell und auch fehleranfällig ist. Kommunikation zwischen Programmen findet normalerweise "unter der Haube" statt, also unsichtbar für den menschlichen Betrachter.

      3. Gibt es nicht. Warum es kein spezielles Buch für Ruby aufm Mac gibt, ist schnell zu beantworten: Ruby soll als eine Art plattformunabhängige Sprache verstanden und genutzt werden, ist also auch entsprechend konzeptioniert.

      4. Weiß ich nicht 😄

      azuby

      posted in Deutsch
      A
      azuby
    • RE: LightUp 1.2 für Sketchup

      "Or another question: How to set a light source or something like that?"

      Babel fish 💚

      posted in Deutsch
      A
      azuby
    • RE: Fenster unauffindbar

      Habe soeben zum vierten Mal Folgendes getan: Ich habe den Quellcode meines Beitrags vom 14 Jul 2008, 13:32 markiert, kopiert und in eine Datei "bla.rb" im Plugins-Verzeichnis von Sketchup eingefügt. Habe dann Sketchup gestartet, das Männchen in "Stein" umbenannt und

      zoom_to_object "Stein"

      eingegeben. Funktioniert.

      Ich kann mir jetzt nur noch vorstellen, dass es ein Problem mit den Zeichensätzen gibt. Welches Programm hast du verwendet, um die .rb-Datei zu befüllen?

      azuby

      posted in Deutsch
      A
      azuby
    • RE: LightUp 1.2 für Sketchup

      "I've tried to build a scene by following the provided tutorial."

      @Adam
      Please don't use slang 😄

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Proper_animation.rb,Bewegungen ohne Mühe.

      Schau ins Ruby-Subforum.

      azuby

      posted in Deutsch
      A
      azuby
    • RE: LightUp 1.2 für Sketchup

      "Hallo,

      I have the following problem: I found a light tool für Sketchup named LightUp Version 1.2 (maybe anyone knows it). I've downloaded the demo for testing, installed it and have tried to put some lights following the tutorial. But it results in black/white view. Does anyone have experience in the tool "LightUp" and can help me?"

      @Ralph
      Letzten Satz bitte in Deutsch, ich versteh ihn so auch nicht 😄

      azuby

      posted in Deutsch
      A
      azuby
    • RE: LightUp 1.2 für Sketchup

      Dann schreib's in Deutsch, irgendwer wird's dir schon übersetzen 😄

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Fenster unauffindbar

      Ich kann nicht nachvollziehen, warum bei dir ein NoMethodError auftritt - habe es (unter Windows) mittlerweile zum dritten Mal probiert mit einer separaten Datei und es klappt. In deiner Datei steht darüber hinaus noch der etwas ältere Code ohne Objekttypenprüfung.

      Gib mal, bevor du zoom_to_object "Stein" eingibst, vorher ein:

      load "Aar_zoom_to_object.rb"

      Nebenbei: require "jcode" sollte auch aufm Mac laufen, hatte vor einem Jahr auf dem System und mit dieser Bibliothek programmiert.

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Kann Wertefenster nicht ändern

      Bin dann auch noch nachtragend 😉 : Mit Dreifach-Klick kannst du alle Mantelflächen und alle Ringflächen markieren.

      azuby

      posted in Deutsch
      A
      azuby
    • RE: Fenster unauffindbar

      Dein 3-Zeilen-Beispiel funktioniert nur deswegen in der Konsole, weil es drei voneinander unabhängige Zeilen sind, die jeweils von Sketchup-Ruby abgearbeitet werden. Eine Methode besteht aber aus folgenden Teilen:

      def METHODENNAME ARGUMENTELISTE
        METHODENRUMPF
      end
      

      Die Ruby-Konsole in Sketchup ist im Grunde äußerst doof. Sie kann nicht erkennen, dass, wenn du "def bla blubb" eingibst, es sich um den Anfang einer Methode handelt und die nächsten Zeilen dazu gehören, sodass sie mit der Ausführung der Zeilen noch warten muss. Sie nimmt einfach die Zeile und führt sie aus. "def bla blubb" ist aber kein valider Ruby-Code, wohingegen jede deiner 3 Zeilen valide ist. Auch d/Code ist so clever nicht, aber z. B. die IRB (Interaktive Ruby) kann das erkennen. Dazu gibst du in der Konsole / dem Terminal (also nicht in Sketchup) einfach mal: irb ein. Um dann damit aber weiterspielen zu können, musst du Ruby kennen.

      Das heißt nur "RubyKids", es ist durchaus für alle Menschen nutzbar. Ansonsten kannst du dir natürlich auch ein Ruby-Buch kaufen bzw hier gucken.

      azuby

      posted in Deutsch
      A
      azuby
    • 1 / 1