sketchucation logo sketchucation
    • Login
    1. Home
    2. Pauline01
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 16
    • Posts 45
    • Groups 1

    Topics

    • P

      Create a Toolbar of my menu

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      170 Views
      thomthomT
      @pauline01 said: Just one things, for add keyboard shortcuts, what's is the function? That's something the user sets up.
    • P

      I want to be in a specific layer

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      171 Views
      TIGT
      It's almost always best to leave the active layer as Layer0 and simply assign other layers to things as you make them... You usually wan to leave 'raw geometry' [edges/faces] on Layer0 - you can then set other layers for Groups/Component_Instances/Text etc to control their visibility...
    • P

      Sktchup + ruby and gtk dll? Listbox

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      256 Views
      P
      hum, ok, thx. When i search on this API i don't find...-_-' you are my angel thx
    • P

      Menu.add_item algorithm problem

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      576 Views
      thomthomT
      Pauline: I split off the last posts Dan and I made. It turned into a separate discussion.
    • P

      Selection add

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      444 Views
      P
      nice help. Thx
    • P

      Ruby and VB?

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      7
      0 Votes
      7 Posts
      946 Views
      P
      Nice
    • P

      Select an object based on its attributes

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      525 Views
      P
      thx TIG
    • P

      Add a text on a point

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      7
      0 Votes
      7 Posts
      866 Views
      P
      i test, thx IT'S, OK. really thx
    • P

      Selection of item created

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      3
      0 Votes
      3 Posts
      544 Views
      P
      oh! thx
    • P

      Create group

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      237 Views
      P
      oh, ok.... it's simple. thx guys
    • P

      SelectionObserver and get attributes....

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      206 Views
      J
      Hi Pauline, the attributes for a Dynamic Component are in the the "dynamic_attributes" attribute_dictionary. # Check "dynamic_attributes" dictionary for a Dynamic Component identity = selected[0].get_attribute("dynamic_attributes", "identity") # the Definition may have the attribute, so... if identity.nil? identity = selected.definition.get_attribute("dynamic_attributes", "identity") end if identity.nil? # there is not attribute named "identity" else # Yes, we found "identity" end
    • P

      Ruby MySQL module in Sketchup

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      333 Views
      daikuD
      Hi Pauline. If I understand correctly, your problem is executing a "require" command from the console window? If so, here are 2 things to keep in mind: Specify the full path (note how in my example, the first fails, but the second works) Use the '/' character, not '' for the separator. @unknownuser said: require 'reglue.rb' false require 'C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/reglue.rb' true
    • P

      Sketchup / ruby WebDiablog / php

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      638 Views
      P
      Nice so finally: the form will be in html and javascript, and the dialog between the html file and the ruby script will allow to do all queries. nice! and thx...
    • P

      Attribut d'un objet dans une variable ruby...

      Watching Ignoring Scheduled Pinned Locked Moved Français
      4
      0 Votes
      4 Posts
      555 Views
      fredo6F
      Pauline, Il n'y a pas d'event onclick() en SU Ruby, may un event onLButtonDown(). Si tu veux savoir sur quel composant l'utilisateur a cliqué, utilise le code suivant: def onLButtonDown(flags, x, y, view) ph = view.pick_helper ph.do_pick x, y entity = ph.best_picked if entity.instance_of?(Sketchup;;ComponentInstance) #Entity contains the component instance you click on (at the highest level) end end best_picked detecte le composant au plus haut niveau. Si tu souhaites detecter un composant a l'interieur d'un composant, c'est aussi possible, mais le code est un peu plus compliqué. Si tu veux savoir si le composant <comp> est un Composant Dynamique, il faut faire le test suivant: (comp.attribute_dictionary "dynamic_attributes") ? true ; false Fredo
    • P

      Attributes object skectchup in a char variable in Ruby?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      197 Views
      P
      Y i want create a script who can put in a ruby variables some attribute of my dynamic object when i click on him, but i don't know how to do this... I know c, c++, java, php 5 but sketchup and ruby is new for me . If you can help me, it's nice. thx
    • P

      How to launch a ruby script with OnClick?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      1k Views
      chrisglasierC
      @martinrinehart said: The message could also be actual Ruby code to execute, but there's a 2KB length restriction. I am sorry but I think this is misleading and my mother tongue is English. Is this what you are talking about? http://code.google.com/apis/sketchup/docs/ourdoc/webdialog.html @unknownuser said: Note that you're sending data down to Ruby as a single string that's passed via the window.location bar. In Internet Explorer on PC, there is a length limit of 2038 characters for this bar, so if you're needing to pass large data down you might consider using get_element_value to pull in a longer string from a hidden input field in the HTML.
    • 1 / 1