sketchucation logo sketchucation
    • Login
    1. Home
    2. Lê Việt Trường
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    L
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 13
    • Posts 25
    • Groups 1

    Lê Việt Trường

    @Lê Việt Trường

    10
    Reputation
    1
    Profile views
    25
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Lê Việt Trường Unfollow Follow
    registered-users

    Latest posts made by Lê Việt Trường

    • RE: Getting Component Size with Ruby

      @unknownuser said:

      This Bounding Box includes rotation, so X, Y , Z sizes are not object sizes.

      Is there a way to get exact sizes of objects (or groups,entities.. any kind of selection)according to local ("objects") or world coordinate system? (Sorry if my terminology is wrong).

      Here is my solution:

      
      b = instance.definition.bounds
      t = instance.transformation
      x = ((b.max.x-b.min.x) * t.xscale)
      y = ((b.max.y-b.min.y) * t.yscale)
      z = ((b.max.z-b.min.z) * t.zscale)
      
      

      Hope it helps
      Have fun!

      posted in Dynamic Components
      L
      Lê Việt Trường
    • RE: Please help me to get a group's layer

      Thank you Masters.
      I have another problem:
      I wrote code to make BOM base on ComponentReport of TIG. Then I place data on a html datatable.So I have to replace all "\n" by "<br>" like this:

      
      des=c.definition.description
      des=des.gsub("\n","<br>")
      
      

      Then the datatable looks good. Then I save data in a .xlsx file. Still look good when openned in Excel. But when I inserted it to LayOut, it create "x000D" before every new line in cell. Please help me how to solve this. Thanks a lottt.

      posted in Developers' Forum
      L
      Lê Việt Trường
    • Please help me to get a group's layer

      Hi there,
      Im beginner to Sketchup ruby,
      Im writing something like this:

      a = instance.parent.layer.name
      

      with "instance" is a component instance placed inside a group/component. "instance.parent" returns a ComponentDefinition, not the instance, so that i cant get the layer's name i wanted.
      Is there some way for me can get this?
      Thanks.

      posted in Developers' Forum
      L
      Lê Việt Trường
    • RE: Construction &amp; Working Drawings - Discussion

      I have some tips you can make your Sketchup's 2D scenes better before send to Layout.
      http://sketchucation.com/forums/viewtopic.php?f=12%26amp;t=65513

      Hope you like it.

      posted in LayOut Discussions
      L
      Lê Việt Trường
    • 4 SketchUp Tips For 2D plan view

      Make your scenes ready to LayOut!
      Hope you like it

      posted in LayOut Discussions layout
      L
      Lê Việt Trường
    • Scrapbook to share

      Here is my Scrapbook for Concept design
      Hope you like it.


      Version: 2016

      posted in LayOut Discussions layout
      L
      Lê Việt Trường
    • A &quot;recorder&quot; to record what you did, like macro in excel?

      I think that function will be very goood for templating for projects.
      There were a log, right? because Sketchup have "undo/redo" functions.
      You can record, and than playback for some multi-function, can translate logs to ruby or add a button for it on toolbar, etc...
      Were there a plugin can do somthing like that?
      😄

      posted in SketchUp Feature Requests sketchup
      L
      Lê Việt Trường
    • RE: SU 2016 Generate Report

      I can make diffrence templates and run like in this video.
      But how can i "export" these templates to run in another .skp file?
      Does anyone know how, please help me,
      Thanks
      https://www.youtube.com/watch?v=kwt7l2y4fUw

      posted in SketchUp Discussions
      L
      Lê Việt Trường
    • RE: Layout 2016. Is this a bug?

      I found it's not a bug on layout. It a bug on "rotate plan view" plugin from TIG. It made layout didn't recognize the scene as an ortho top standard view scene, then the dimension display the same number in any directions.
      Can fix it by choose "top (relative)" in "Sketchup Model/View/Standard Views"

      posted in LayOut Discussions
      L
      Lê Việt Trường
    • Layout 2016. Is this a bug?

      https://youtu.be/jdBXIT_xpfI
      Anyone help me, please!!!

      posted in LayOut Discussions layout
      L
      Lê Việt Trường