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

    nicholas_yue

    @nicholas_yue

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

    nicholas_yue Unfollow Follow
    registered-users

    Latest posts made by nicholas_yue

    • Sketchup API (Ruby) - offline copy

      Hi,

      Is there an offline version of the sketchup Ruby API ?

      I am not constantly connected to the internet to be able to browse the documentation.

      Regards

      posted in Developers' Forum
      N
      nicholas_yue
    • RE: Entities relationship - Sketchup Ruby SDK

      Thanks for all the suggestions, pointers and tips.

      I am making progress exporting both raw entities and entities within components instances (including the transformation)

      It's not complete yet (some instance are place wrongly) but I should be able to figure the rest out (might be group handling etc)

      Thank you once again.

      posted in Developers' Forum
      N
      nicholas_yue
    • RE: Entities relationship - Sketchup Ruby SDK

      @tig said:

      ents=Sketchup.active_model.entities

      • then take
        box1=ents[-1].all_connected
      • to list all edges/faces connected to the last entity in the model... then
        box2=[] ents.each{|e| if not e.all_connected.include?(box1[0]) box2=e.all_connected break end }

      I tried but it get's really slow with very large scene.

      I am after a more direct way to find out
      (1) How many objects are in the model
      (2) For each object, what are the faces, edges, vertex

      I am doing this to write out the information as a text output so I can render it in Renderman.

      Is there an easier approach for folks writing exporter for SketchUp, I had a look at some of the example exporter and they don't look straight forward.

      posted in Developers' Forum
      N
      nicholas_yue
    • Advice : Developing Ruby extension for Sketchup (Windows)

      Hi,

      I tried looking for the information at the FAQ.

      I am writing a C++ based Ruby Extension for use in Sketchup.

      Where can I find information regarding the C++ compiler version and Ruby version required for easier integration with Sketchup?

      Should I build my own version of Ruby ? Should I avoid developing in 64bit windows ?

      I am targeting Sketchup version 8.X

      Regards

      posted in Developers' Forum
      N
      nicholas_yue
    • RE: Entities relationship - Sketchup Ruby SDK

      @dan rathbun said:

      Well then unless the "boxes" have been grouped or made into a component... then they are nothing but primitives that happen to share vertices.

      Hi Dan,

      Thanks for the advisory.

      As you can see, I am new to Sketchup's workflow and best practices.

      If I understand correctly, it is reasonable to expect some group/component from proper Sketchup usage.

      Regards

      posted in Developers' Forum
      N
      nicholas_yue
    • RE: Entities relationship - Sketchup Ruby SDK

      @dan rathbun said:

      Did You group the boxes, and then give each group a name ??

      No, I didn't

      I am working on an exporter and need to deal with scenes as is rather than require the plugin user to change their work flow.

      I am kind of re-building a scene representation from a polygon soup.

      posted in Developers' Forum
      N
      nicholas_yue
    • Entities relationship - Sketchup Ruby SDK

      Hi,

      I have a scene where I have created two boxes.

      --The following is done via Ruby--
      When I list the entities in the scene, I get all the individual faces.

      Is there a property on those entities/faces (or a method/algorithm) to find out which object (box) the face/entity belongs to?

      Regards

      posted in Developers' Forum
      N
      nicholas_yue