sketchucation logo sketchucation
    • Login
    1. Home
    2. Matt666
    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
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 75
    • Posts 822
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Ruby : pas de chargement des plugins

      @unknownuser said:

      les sources des '.rb' que j'ai ont des libelles en anglais or quand je utilise dans SU ils sont francisés
      C'est normal, le script utilise un "dictionnaire".
      Par exemple, dans box.rb, on peut voir avant chaque chaîne de caractère un $exStrings.GetString (exemple : $exStrings.GetString("Height")).

      Cette variable globale $exStrings et sa fonction .GetString(str) font référence à un autre script disponible dans Google SketchUp 7\Tools\langhandler.rb, appelé dans le script d'appel des sous scripts Google SketchUp 7\Plugins\examples.rb comme ceci : $exStrings = LanguageHandler.new("Examples.strings"). Ici on peut voir comment la variable globale $exStrings a été créée.

      La fonction de création appelle un fichier "Examples.strings"... Celui ci est dipsonible dans Google SketchUp 7\Resources(en-US ou fr-FR)\examples.strings ! Si tu ouvres ce fichier avec le bloc notes, tu y verras un simple fichier texte avec toutes les traductions dont le script a besoin ! C'est simple mais il fallait y penser. 😉

      @unknownuser said:

      En tout cas ce new_group a l'air actif
      C'est le meilleur ! 💚

      posted in Français
      M
      Matt666
    • RE: Ruby : mode enregistrement

      Le problème, aussi, est que SU bloque certaines fonctionnalités. Elles ne sont pas disponibles par le biais du Ruby. Donc une macro d'enregistrement qui n'enregistre pas tout, c'est quand même pas dément... 😞

      posted in Français
      M
      Matt666
    • RE: Ruby : pas de chargement des plugins

      @unknownuser said:

      autre question : de quelles commandes dispose-t'on dans la console ruby ? genre liste des fichiers chargés , interrompre un script ....

      Pas de débugger ruby. On utilise généralement Notepad++.
      Sinontu as un plugin de Jim Foltz, Ruby toolbar. Très intéressant !

      @unknownuser said:

      en fait on load un '.rb' mais on 'execute' un 'def ...'
      en gros c'est ça. Comme le lisp sur Autocad, soit dit en passant !
      Il faut exécuter la commande après chargement du script.

      @unknownuser said:

      je pense que les '.rb' ne sont pas bien chargés au demarrage peut-etre à cause de répertoires mal francisés.
      Non aucun problème de ce coté là. Comme dit dans le premier message, si tu veux un script dès le démarrage de SU, il faut le déplacer dans le dossier "Plugins" en dur. Si tu as un dossier dans le dossier plugns, ça ne fonctionnera pas. Sauf si tu laisses un fichier script de balayage du dossier en question. Par exemple, aucun de mes scrips n'est dans le dossier plugins. J'ai seulement un fichier qui donne le chemin du dossier avec tous les scripts.

      posted in Français
      M
      Matt666
    • RE: Ruby : pas de chargement des plugins

      Salut et bienvenue !
      Un plugin, en général est créé de la manière suivante :

      • Tu charges le plugin
      • Tu cliques sur le menu ou l'icône correspondant.

      Si tu édites le script Box.rb, tu verras à la fin une commande comme ça : UI.menu("Draw").add_item($exStrings.GetString("Box")) { create_box }. Cela sert à indiquer à SketchUp où mettre le raccourci du plugin.
      Ce qui veut dire : Dans le mneu "Draw", ajoute un nouveau raccourci qui s'appelle "Box" et qui entraîne la commande create_box.
      A partir du moment où ton script est chargé, une nouvelle ligne "Box" apparaît dans le menu Draw.

      Sinon tu peux aussi ouvrir la console ruby et entrer create_box. Cela fonctionne seulement si le script est chargé.

      Autre chose : Si tu veux que Box.rb soit chargé dès l'ouverture de Sketchup, mets tout simplement le fichier directement dans le dossier "Plugins". Pas de sous dossier quoi.

      posted in Français
      M
      Matt666
    • RE: [Plugin] ExtendTool v0.2 (update 20090708)

      EarthMover,
      Thank you for testing it!
      Can you post tested file, please? Can you show me "limit" lines or faces, and desired edges to extend?
      I have no problem here. Oh yes I had a problem, but I corrected the plugin. Update will come soon.

      JClements,
      Thank you for the comment!
      I will "investigate" to find if I can do this plugin... For the moment I think it's out of my ruby level! 😆

      posted in Plugins
      M
      Matt666
    • RE: [Plugin] ExtendTool v0.2 (update 20090708)

      majid,
      this plugin cannot do what you describe... Perhaps try ExtendCloseLines?

      posted in Plugins
      M
      Matt666
    • RE: [Plugin] ExtendTool v0.2 (update 20090708)

      Thank you for your answer.
      Sorry, but... I don't see any ExtendTool folder and ExtendTool.rb in your plugin folder...
      Can you try to download it again and to unzip it directly into plugins folder, please?

      posted in Plugins
      M
      Matt666
    • RE: Crossing lines break automatically

      Thank you thomthom!

      posted in Developers' Forum
      M
      Matt666
    • Crossing lines break automatically

      Hi all!

      @unknownuser said:

      When you draw a line that crosses another line on the same plane, both lines are split where they meet.

      Just one question: Is it possible to temporarly stop this method by ruby?
      This is one of new fonctionalities in SU 7.
      Thank you!

      posted in Developers' Forum
      M
      Matt666
    • RE: [Plugin] ExtendTool v0.2 (update 20090708)

      @majid said:

      it doesn't work for me

      Of course lines must coplanar. That's strange it doesn't work for you...
      Can you show me errors in the ruby console please?
      Thank you!

      Nice to read that Pilou! 😄

      posted in Plugins
      M
      Matt666
    • RE: [REQUEST] Pick up layer from object

      Ah ok!! 😳
      I made a similar script for me some time ago...
      Great work TIG!

      posted in Plugins
      M
      Matt666
    • RE: [REQUEST] Pick up layer from object

      You can do it :

      • Select entities
      • Go to windows "entity info"
      • Change layer in the list.

      It works here!

      posted in Plugins
      M
      Matt666
    • RE: Paramètre depuis ruby

      Pour ce que tu veux faire, tu es obligé soit de :

      • Passer par une boite de dialogue
      • Laisser l'utilisateur gérer le nombre de segments à créer, en le laissant entrer un nombre avec un "s" à la fin (48s par exemple) comme dans la commande de cercle native. Et il terminera par entrée pour la validation. Ici je suppose que tu calques la procédure de la commande native. Si ca se trouve tu n'as pas besoin du "s". Tu peux laisser ton 48, et mettre 48 par défaut dans ton script de création de cercle !
        Sketchup.set_status_text 48, SB_VCB_VALUE sert à afficher un texte dans le VCB, c'est tout. Il est affiché comme une information, et ne modifie pas ton programme.
      posted in Français
      M
      Matt666
    • RE: Mes outils pour participer en anglais ;-)

      Personnellement j'utilise freelang, et Freelang spécialisé pour les mots techniques (ou pas !) que je ne connais pas. Sinon c'est Google traduction...

      posted in Français
      M
      Matt666
    • RE: Paramètre depuis ruby

      Salut et bienvenue.
      Pourrais-tu être un peu plus explicite pour ta question ?
      Je suppose que tu veux contrôler les saisies utilisateur pendant l'utilisation de ton script ?

      Pour ça il te faut créer un script avec les functions class. Ce sont des scripts particuliers qui peuvent prendre en compte les interactions utilisateurs.
      Tu as plein d'exemples sur ce site. Parmi ceux que j'ai créés : Polarline, PointTool, F2f, etc... Regarde dans ma signature, tu y verras le lien vers tous mes plugins. Ensuite charge-en un et regarde ! C'est comme ça que j'ai fait, aussi...
      😉

      posted in Français
      M
      Matt666
    • RE: [Plugin] Statistics v1.0

      😄

      posted in Plugins
      M
      Matt666
    • RE: [Catalog] Matt666

      Plugins "Statistics" and "Extend tool" added to the first post.

      posted in Plugins
      M
      Matt666
    • [Plugin] Statistics v1.0

      Hi all!
      Here is a new plugin I've made this morning.
      If you go to menu Windows/Model info/Statistics, you have a board of all entities in the model. This plugin returns a board of all entities like native tool but just of the current selection. If nothing is selected, plugin works on the whole model.

      Description:

      • Choose "Simple stats" to return a board without nested entities and without table entities (layers, comps defs, styles and materials)

      • Choose "Deep stats" to return a complete board of all entities in the selection.
        Usage:

      • Menu plugins/Selection/Deep stats

      • Menu plugins/Selection/Simple stats

      • Context menu/Selection/Deep stats

      • Context menu/Selection/Deep stats

      • Ruby console/Type "Matt_Selection.stats(false)" for a simple report

      • Ruby console/Type "Matt_Selection.stats(true)" for a deep report
        History:

      • 1.0
        22/06/2009 | First version
        As always All suggestions/improvments are welcome!


      v1.0

      posted in Plugins
      M
      Matt666
    • RE: [Plugin] ExtendTool v0.2 (update 20090708)

      Hi rv1974!

      @unknownuser said:

      To select boundary at the beginning and then with window select a bunch of lines to be extended.
      Maybe trim with shift could be added?
      With this method you can't select side of edge you want to extend... That's why I copied Autocad method. A possible improvment would be to select side of multiple edges by a path, like acad tool...

      posted in Plugins
      M
      Matt666
    • [Plugin] ExtendTool v0.2 (update 20090708)

      Hi all!
      Here is a plugin that extend edge you pointed on. It tries to work like acad Extend tool...
      Usage:

      • First select edges or faces that will be limits of the extended edges. If you don't select anything, script will select all the model as the limit.
      • Point on each edge you want to extend. Be careful of side of the edge pointed. It determinates sense of the extension.
        I hope it works with Win and Mac version. A cursor replaces standard SU cursor.

      This script may contain bugs... No. IT contains bugs! Please be patient if you find a bug, I will do my best to update the script.
      All suggestions/improvments are welcome!
      😉

      [EDIT] 20090708 - V0.2
      New extended edges broke edges of the limits. So limits changed while script worked.


      Menu plugins/Extend edges
      Context menu/Selection/Extend edges
      In the ruby console: "Matt_Edges.extend"

      posted in Plugins
      M
      Matt666
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 41
    • 42
    • 6 / 42