Learn how to strip away the top-level component wrapper by saving the dynamic component from the context menu. Learn how to also add a file description and claim credit for the model and import it into a blank model.
- [Scott] In the previous video, I introduced you to a potential problem that we face when we author dynamic components. In this video, I'll offer you a solution. The solution is a two-step process where we have to save this out to a new file and then open that file and configure it. So, let's take a look at what we have here in the working file. The dynamic component works as intended and it has this structure where at the top level, we have the definition name.
In Entity Info, you can change that definition name. So, for example, I'm going to change it. Let's call it Shelving Unit. Enter and you'll see that reflected down here. Now, I'd like to export this as a separate file, so I will right-click on this and choose Save As. Note that this is different and gives a different result than choosing Save As from the File menu. When you choose it from the Context menu like this, it's going to strip away that outer container which was the problem that we experienced in the previous video.
So now, I'm going to save this in a different folder. So, you need to navigate to the Dynamic Components library folder and save this as Shelving Unit. Note that it automatically suggests the name which matches the definition name. I'll go ahead and save that and then I'll close this file without saving. I want to maintain a copy of my work in my working file so that I an change it if need be in the future.
Now, I'm going to go ahead and navigate to the new file that I just generated right here and I'll double-click on that to open it. You might be surprised to see that it looks different. That's because it doesn't have the top level. The top level is now Shelving Unit at this level where we see the file name. And if we click on the different elements here, you'll see that none of them contain that user interface that we were previously looking at.
Don't worry, that user interface and those perimeters are still actually part of this model even though we can't see them. That's the really confusing thing. That information is still here, but we can't edit it and we can't see it. Just trust that it's still there. Now, we have a little clean up to do here. What I'm going to do is open up Window, Model Info. Go to the Statistics page and Purge Unused to get rid of any extraneous information.
You can also, optionally, claim credit for the model up here. So, I can only click Claim Credit if I'm already logged in and you log in down here. On the status bar, there's a button that looks like a person. It says I'm currently signed in with my email address. So, if you don't have a Trimble account, you can click on that, create a Trimble account, log in with your email address and password. Once that's done, the icon will look like this and then you can click Claim Credit.
So now, it says the author is Scott Onstott. There's kind of a bug here where it's showing Stacy, which was a component that isn't even in this model, so you can get rid of that by going to Statistics again and saying Purge and then coming back here and you'll see that that's all cleared out. You can also, optionally, go to the File tab and put in a description. Here's where you can type information about what this might do. I'll say interact to cycle through materials.
Use component options to adjust scale to resize in all three directions. Okay, now I'm going to close that and, again, there's a kind of bug where that description won't be saved unless we do something in the file, so I'm just going to draw a line and then erase that. And now, the description will be saved.
Okay, so now, I've configured that and I'll just go ahead and say File, Save. I'm saving the Shelving Unit file. I'm going to close that and I'm going to go here into an untitled SketchUp model with nothing in it. I'll go over here into my library and drag my Shelving Unit file that I just saved into this untitled file and it comes in complete with the user interface. We can also expand this and you can see that the components come in, but we no longer have that higher level which would prohibit us from directly accessing the component options.
If I go up to Interact, Tools, Interact, I can then click on this to cycle through different materials that were defined in the model. And I, of course, can use these perimeters over here and made adjustments and they're going to work. I can also scale it and things are going to be resized and recalculated as needed. So, everything works as intended and from a user's perspective, this makes the most sense because there are no mysteries here. We don't have to explode anything and we're not hunting through the user interface.
So, just in summary, what we had to do was we had to go into our working file, save it out from the right-click menu, go into that file, add any metadata that you want, in terms of file description and claiming credit for the model. Then you save that and you're ready to go.
- Using premade dynamic components
- Saving dynamic components to local libraries
- Creating dynamic components: fences, bookcases, cabinets, and furniture
- Adding position and size attributes
- Adding formulas
- Creating swatch components
- Nesting component parts
- Adding an interface for custom attributes
- Animating component properties
- Dynamically scaling materials