• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Dynamic Component attribute question

Scheduled Pinned Locked Moved Dynamic Components
sketchup
3 Posts 2 Posters 1.5k Views
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 26 Mar 2015, 13:32

    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 26 Mar 2015, 22:21

      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 27 Mar 2015, 13:39

        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
        1 / 1
        • First post
          3/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement