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

    buidoi3003

    @buidoi3003

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

    buidoi3003 Unfollow Follow
    registered-users

    Latest posts made by buidoi3003

    • RE: How to draw a cylinder by ruby?

      Hi guys,
      I use the following code to set the center point = position of the mouse click:

      def onLButtonDown(flags, x, y, view)
      puts " x = "
      puts " y = "
      puts "--------------------- "
      centerpoint = Geom::Point3d.new x,y,0

      However, the (x,y) seems not to be my mouse's click position. It is just random.
      How could I set the center point to be my mouse click position?

      posted in Developers' Forum
      B
      buidoi3003
    • RE: [Code] intersect_with?() Group test method

      Hi,
      May I know after determining if the 2 groups/ components/ faces are intersected. How do I get the area of the intersection?

      posted in Developers' Forum
      B
      buidoi3003
    • RE: Ruby method to calculate the area of an intersection?

      In other words, my question is:
      How to create a new face/ entity (or whatever) that hold intersection of A and B so that I can then use the area() method to get the area of that intersection.

      posted in Developers' Forum
      B
      buidoi3003
    • Ruby method to calculate the area of an intersection?

      Hi everyone,
      Please take a look at the attached image. Here is the situation:
      I have only a rectangular.
      Using SketchUp, I can easily draw a circle, select the intersection of my circle & rectangular --> view Entity info --> I can see the area of the intersection.

      However, I want to write a ruby script to automatically draw the circle, then get the intersection area.

      I can automatically draw the circle, no problem. However, I don't know how to automatically get the intersection area. May I know if there is any function in Ruby API can do that?
      There is a face.area() to get the area of the face, however, I don't know how to define the face = intersection. Is there any way to do that?

      Thank you.


      Area.png

      posted in Developers' Forum
      B
      buidoi3003