sketchucation logo sketchucation
    • Login
    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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Dynamic Component attribute question

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    3 Posts 2 Posters 1.5k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      iclifton
      last edited by

      My question is probably a simple one. If i create an attribute to return the cost of an item based on the model number, which i already have set up in a pull down list. When i use the =if formula, i can only go out 3 cost. i have eight model numbers. Is there a different formula that i can use or am i doing something wrong.

      1 Reply Last reply Reply Quote 0
      • P Offline
        pcmoor
        last edited by

        you can use nested if statements, however it is best to use the choose function, based on the dropdown index. CHOOSE(index,value1,value2,...valueN)

        cost =choose(drop,$12,$15.....$n)
        drop item 2 (where the value =2)

        or if value of drop is some function or not a consecutive integer,
        then use OPTIONINDEX("attributeName")
        within the choose function

        cost =choose(optionindex("drop"),$12,$15.....$n)

        the number of choices = numder in dropdown

        1 Reply Last reply Reply Quote 0
        • I Offline
          iclifton
          last edited by

          Thank you pcmoor. i was able to use =CHOOSE(OPTIONINDEX. It gave me the result i was looking for. Thanks for the help!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement