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

    Topics

    • C

      Way to simplify the edges of a square?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      385 Views
      TIGT
      You need to look in the API methods for various bits... it's all there... Make a list of the loop's vertices. You get a vertex. You get its point in 3D You get the vertex's edges. For the two edges get its other end's vertex and thence its point. You get the vector between the vertex-point and that end-point in turn. You see if vertor1==vertor2 [or its 'reverse']. If they're not 'equal' then it's a corner... .
    • C

      Retrieve model variable

      Watching Ignoring Scheduled Pinned Locked Moved Dynamic Components sketchup
      4
      0 Votes
      4 Posts
      3k Views
      J
      I think this post might help.. http://www.sketchucation.com/forums/scf/viewtopic.php?f=289&t=14390
    • C

      Hidden or soften edge on a face?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      273 Views
      C
      Cool, Merci Matt!
    • C

      How to get the insertion point of a component?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      480 Views
      T
      Yes, I remember now figuring this out when I wrote the 3D Text Tool.
    • C

      Go to a particular page on a model

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      435 Views
      C
      Thanks TIG! I just found an easiest way on the forum. ... pages.selected_page = pages["Scene 2"] It was on an older post answered by Jim. http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=8704&p=52285
    • C

      How to undo from ruby?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      1k Views
      J
      @unknownuser said: Hi, Again... But the start/commit_operation do not undo the variable that changes? It only undo "actions" on the screen, on the model. Then is there a way to act on the variable and undo the new value? Emmanuel, That is sort of an odd request. Can you elaborate on what you want to do, or post some code?
    • C

      Retrieve input from the status bar

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      490 Views
      C
      Great Macs! I'll test it as soon I'll go back to my codes. Thanks A lot.
    • C

      [Plugin] Select component instances on right click

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      28
      0 Votes
      28 Posts
      34k Views
      S
      fantastic plugin. extremely useful. thanks
    • C

      Geom::Transformation.rotation

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      757 Views
      C
      Not realy clear for me yet. If I understand well, that means "transformation" is usefull for add_instance (f.e.) A kind of insert definition transform1 = Geom;;Transformation.new inspoint instance = entities.add_instance componentdefinition, transform1 and "transform!" to modify this instance. instance.transform!(transform2) But I'll get use to it. Thanks both of you for your help.
    • C

      Highlight each instance in a selection set

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      543 Views
      J
      @unknownuser said: Thanks Jim! Once again, you hit the mark. First, I missed the ".collect" and get a bug on sketchup. Have you got any idea what scan order is prefered in the 'do' loop? Any way to sort the collection? Collect is a Ruby method that just makes a copy of the selections in an Array. There isn't any order to the entities returned (that I am aware of.) You'll need to sort them manually, possibly by building another array of only the instances. Then, you'll need to decide what to sort on: definition name, color, position, size?
    • C

      Units problem

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      350 Views
      TIGT
      Try something like (bmaxz+$startcoord).to_cm - SUp uses the 'inch' as its units and that's what the bmax returns - if you want it to return dims in other units try things like .to_cm ...
    • C

      Error loading file

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      845 Views
      TIGT
      Although the SUp Ruby API doesn't stress it, I think it's safer to put things into () after a method: So UI.messagebox "A message..." becomes UI.messagebox("A message..."), you are then more likely to spot errors like missing quote closing. If you are using Notepad++ (I do too) then set up your Ruby format defaults to say have any strings in red - then if you miss off a closing " everything afterwards is coloured red and stands out as wrong...
    • C

      Autosnap?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      22
      0 Votes
      22 Posts
      3k Views
      finewoodF
      Sorry, was a response to this post ...... Jim Global Moderator Posts: 2091 Joined: Mon Nov 12, 2007 10:13 pm Name: Jim Foltz Operating system: XP Pro SP3 SketchUp version: Google Pro 7.1 .....but the thoughts are free - also my finewood
    • C

      Webdialog: html and rb example

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      1k Views
      T
      Try this search argument: http://groups.google.com/group/Ruby-API/search?group=Ruby-API&q=webdialog&qt_g=Search+this+category Todd
    • 1 / 1