From the course: SketchUp Pro: Dynamic Components

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Implement pricing for each model

Implement pricing for each model - SketchUp Tutorial

From the course: SketchUp Pro: Dynamic Components

Start my 1-month free trial

Implement pricing for each model

- [Instructor] Now that we have the model selectable here from a drop down. I'd like it also to show how much each model costs. And we can implement that by adding a price variable to each one of the models. So I'll start here in the bottom. 18 inch model and I'll add a custom attribute called price. And I'll say that that's equal to 350 for example. And then on the next model I'll add an attribute of the same name, price. And I'll give it the value of 450. And then up here on the top model here, the widest model, we'll add a price of 550. So each model has that information stored within it. Now we need to create an attribute at the top level in the SuperCab called price. And it's going to display the price from whichever model is going to be displayed. And we need to think about the logic here of how we're going to do that. It's going to be a conditional statement so I'm going to say equals. And this conditional statement has to return a value, namely, a price. So what we need to do…

Contents