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

    Posts

    Recent Best Controversial
    • RE: My First Plugin questions

      It did cross my mind that you could setup a DC for the entire house, but I feel that may get hairy, especially when working with Nested and/or Intersecting options. Also the fact that Free Users cannot author DC's is a draw back.

      I do want to take advantage of DC's for some optioning, but dont see it as an efficient solution for complex production homes.

      Thanks again for you help so far!!

      posted in Developers' Forum
      J
      jonalbert
    • RE: My First Plugin questions

      Thanks Chris, only iterating the Instances of my desired Component Definition is a big help!

      posted in Developers' Forum
      J
      jonalbert
    • RE: My First Plugin questions

      Thanks Dan!

      Bummer about EntityID, but I think assigning my own Unique ID can work for my purpose.

      "MyBox" will always be a basic cube, and I am fine with only detecting if origin of other entities are within the bounds of "MyBox", sounds like that wont be difficult.

      I'm sure I will have future questions, so let me give a better idea what I am trying to accomplish. For starters, check out this short video of my AutoCAD version of the plugin(Hopefully you can get the jist despite poor quality video).

      Bascially this is what I like to call an "Option Solving Engine". The idea is to let the user "Graphically Program" Architectural Design Options within a SketchUp model, and give the ability to "Resolve" this model for any number of selected option configurations. Each time the model is "Resolved" it will first be copied in order to keep original model intact.

      posted in Developers' Forum
      J
      jonalbert
    • My First Plugin questions

      Hi All,

      I am new to SketchUp and Ruby. As part of my first plugin I need to accomplish the following.

      On execution...

      1. Query model for all Dynamic Component Instaces with a definition name of, let's say "MyBox", which is a transparent cube.

      2. For each "MyBox" found, retreive Custom Attributes "FromEntityID" and "ToEntityID"(From... and To... ID's represent particular Entities in the current model), then Move/Transform all Entities that are phsyically located inside the transparent "MyBox" from the Origin of "FromEntityID" to the Origin of "ToEntityID".

      Some of my questions so far are...

      1. Can I be sure the Entity ID's will be constant throughout the lifecycle of the SketchUp Model?

      2. Once I have an EntityID, is there a way to get directly at that Entity without cycling thru all Entities in model and checking each EntityID?

      3. Any suggestions on determining if an Entity is physically located within "MyBox"?

      Thanks in advance for any help.

      Jon

      posted in Developers' Forum
      J
      jonalbert
    • 1 / 1