sketchucation logo sketchucation
    • Login
    1. Home
    2. marksolberg
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 7
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Possible to change component size to a fixed value?

      Thanks TIG,
      Didn't think of that. Since you can scale and "scale to a fixed size" using the Sketchup tools I thought I was just missing the method.

      Mark

      posted in Developers' Forum
      M
      marksolberg
    • Possible to change component size to a fixed value?

      Is it possible to change the size of a component to a fixed size along an axis? I know you can use transform! or transformation to scale it relative to its previous size but I want to set it to a fixed length regardless of previous size.

      Thanks,

      Mark

      posted in Developers' Forum
      M
      marksolberg
    • RE: Getting unexpected result when setting material color

      Thanks,
      I was using what I thought was normal notation for colors i.e. 0xFF9900. Sketchup expects 0x0099FF. Who'd a thunk.

      Mark

      posted in Developers' Forum
      M
      marksolberg
    • Getting unexpected result when setting material color

      When I run this script I get a range of blue colors applied to the components. I'm trying to get a range of red colors. I've checked and double checked my colors to make sure I have the right hex code for them.

      mod=Sketchup.active_model
      ents=mod.entities
      sel=mod.selection
      my_colors=[0xFF3300,0xFF4719,0xFF5C33,0xFF704D,0xFF8566,0xFF9980]
      i=0
      ents.each do |e|
        if e.is_a? Sketchup;;ComponentInstance
             e.material = my_colors[i]
              i+=1   
        end
      end
      

      What am I missing?

      Thanks,
      Mark

      posted in Developers' Forum
      M
      marksolberg
    • RE: Possible to import DC attribute values?

      Thanks Chris,
      The info in your last post seems to be the type of info I'm looking for. I'll post this in a separate forum also, but do you have any recommendations as to where to start learning Ruby programming for Sketchup? About a hundred years ago I went to college for programming (pre-WWW days) but somehow ended up in the casino industry in a non-programming capacity. Wish I would have stayed with programming, I've always enjoyed it.

      Mark

      posted in Dynamic Components
      M
      marksolberg
    • RE: Possible to import DC attribute values?

      Chris,
      I couldn't get the video to play in the linked topic. I don't know that it would matter though. I think this is beyond my knowledge. I didn't make it past the first paragraph before I got that look a dog gets when they hear an unfamiliar sound. Thanks just the same.

      Mark

      posted in Dynamic Components
      M
      marksolberg
    • Possible to import DC attribute values?

      If I have a DC with a custom identifier attribute like ProductNum is it possible to import and set a different attribute, say LenZ based upon an external file? Basically I would like to use Sketchup to visualize performance data. An example file might be something like:
      A34 3.5
      B22 9
      B33 7

      Perhaps with a custom Ruby script?

      Thanks,
      Mark

      posted in Dynamic Components sketchup
      M
      marksolberg
    • 1 / 1