Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
The Component Attributes window can also be used to create attributes that can be seen in the Component Options window. Now let me show you what I mean here. We have a file open called Sofa_01 in the Chapter 3 folder. Now, this just has a basic blank sofa in it. If I click on the Sofa and right-click, you'll notice under Dynamic Components we have two major windows here, the Component Options window as well as Component Attributes. So if I open up the Component Options window for this, you really have no options to choose.
Well, we can change that by just adding those in, in the Attributes window. So I'm going to right-click over this again and pick Component Attributes. Now you'll notice here that I have a component called Sofa, which consists of two sub-components called Sofa_Cushions and Sofa_Base. In fact, if I double-click on these, you can see here I've got my cushions and my base. Now notice also how as I click on these, you can see how the Component Attributes window changes.
So if I have just that one component selected, it's the only thing that's going to show up in the Attributes window. But if I click on everything, then you'll see the sofa as well as the hierarchy and the sub-component, such as the cushions and the base. So let's go ahead and add an attribute to the sofa that we can reveal to the casual user, meaning somebody who doesn't have SketchUp Pro. So we can go ahead into Add attributes, and let's go ahead and just add in a name.
So we can call this, for example, Modern Sofa. We can also add another attribute, say ItemCode, and it's called say Sofa1234 and that's our product code for that. We can also add an attribute for say Description, and we can say 5 Foot Long Sofa and so on. Now all of these, we can choose whether or not to display them to the casual user.
So, for example, for the name, all I have to do is click on this Details tab, and it brings up a new window. It says whether or not users can see the attribute. For all of these, users can see them. So, for example, if I click on this, open up the Component Options window, you'll see now we've got a couple of additional things. We have the name of the sofa, Modern Sofa, the product code, as well as the description. Now if we wanted to, we could also add in additional ones.
So, for example, if I wanted to add in the position of this, I can just go ahead and add in position. If we look at it, we can see in Component Options, well, position isn't available. So what we can do is we can take each one of these, go into the Details tab and select what is possible with this attribute. So, for example, users can see it and hit Apply. So now I have my X position is able to be seen by the user.
Unfortunately, the user can't type it in, but I can change that so, for example, users can see and edit as a textbox. So, for example, if I can click on that, say Display label X, or you can change that as well. You could say Position in X, and hit Apply. So now it says Position in X and I can now change that. I can say I want it to be at 9 inches in X and it jumps 9 inches along that red or X axis.
Now I can do the same for all of these. I can say User can edit as a textbox and we can type in again Position in Y, hit Apply, and so on. Do the same for Z as well. So now I can type in the exact position, if I wanted to. So now what we have here is the casual user will pull up this Sofa component and now they can position it wherever they want in the room.
They also have additional data about what type of sofa it is. Let's go ahead one more time and add in another attribute. Instead of picking one from the list, however, I'm going to go down here to the very bottom and enter a custom name. So just click on that and you'll notice how Enter Name is now highlighted in blue and we can type in something that we want, say for example the price of the sofa. So now we have custom variable called the Price, and we could say let's say this sofa is $459 and we just hit Enter.
Now, let's decide whether or not we're going to reveal this. We can say users can see this attribute and we can say Price, and now we have a price but the price can't be edited. Of course, we don't want it to be edited, because, well, we want the company to set the price, not the customer. But what's really cool about this is that we are exposing the price to the customer and they can actually load that in to a spreadsheet and if they, for example, furnish a room, they can get all the prices of everything and use that to calculate how much is going to cost to redecorate a room or build a kitchen or whatever.
So as you can see, the Component Attributes window and the Component Options window can be linked very closely. So you can expose data to the user that they can either change or just view and use for their own purposes.
Get unlimited access to all courses for just $25/month.Become a member
100 Video lessons · 12033 Viewers
56 Video lessons · 11445 Viewers
83 Video lessons · 9354 Viewers
109 Video lessons · 5218 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.