sketchucation logo sketchucation
    • Login
    1. Home
    2. fdarma
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    F
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Groups 1

    fdarma

    @fdarma

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

    fdarma Unfollow Follow
    registered-users

    Latest posts made by fdarma

    • RE: Attributes in Sketchup - Probably a stupid question

      Boom! You got it.
      Well, I have no idea that such an instance definition existed. I guess it allows to control many components at the same time.
      Also, I have no idea why the "sketchupattributemanager" plugin attaches the attributes to the component definition and not the component itself. But I found another plugin by Rick Wislon that attaches and retrieve at the "right" place...

      Is there a plugin out there that manages component attributes, creates reports, ectc?

      Thanks a lot for your help. I'll start reading about instance definition to make sure I understand what this is.

      Also, thanks for your advise on debugging and syntax. I'll do just that.

      posted in Developers' Forum
      F
      fdarma
    • RE: Attributes in Sketchup - Probably a stupid question

      This is driving me a little nuts...
      It does not appear to be a case sensitive issue. I had this right.

      The first test returns -666.66 (and I confirm...this is not the value ๐Ÿ˜„ )
      The second test returns an error (and I confirm, I see the dict "Test" in the attribute manager)
      The third test returns and error Error: #<NoMethodError: undefined method `each' for nil:NilClass> . This one...I am not sure what to think of.

      I know I am doing something stupid, just don't know what yet. Maybe the attribute manager plugin I use is wrong. Also, I use the free version of Sketchup.

      posted in Developers' Forum
      F
      fdarma
    • RE: Attributes in Sketchup - Probably a stupid question

      I tried everything in lower case...the problem stays. Seems to simple...but just can't get thru this.

      posted in Developers' Forum
      F
      fdarma
    • RE: Attributes in Sketchup - Probably a stupid question

      I tried that. I create dict and name without capital letter, same thing. I am not sure if get_attribute is case sensitive, but I have another problem somewhere.

      posted in Developers' Forum
      F
      fdarma
    • Attributes in Sketchup - Probably a stupid question

      Hello,

      For some reason, I can't retrieve attributes associated to a component. I have the following:

      def fdarm

      mod = Sketchup.active_model # Open model
      ent = mod.entities # All entities in model
      sel = mod.selection # Current selection
      $entity = sel[0]
      UI.messagebox($entity.get_attribute('Test', 'price').to_f)
      end
      fdarm

      It returns "0.0". I select a component that has the value 3 for the attribute price in the dict "test".

      What am I doing wrong?

      Thanks

      Frank

      posted in Developers' Forum
      F
      fdarma