From the course: AutoCAD: Designing Dynamic Blocks
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Controlling the visibility of objects from a menu
From the course: AutoCAD: Designing Dynamic Blocks
Controlling the visibility of objects from a menu
- To make this Dynamic Block even better and more flexible, let's design a Visibility system so that we can control the number of guest chairs that are displayed. We want to be able to choose from a menu whether we have two guest chairs, one guest chair, or no guest chairs. Double-click the Block reference to go into the Block Editing environment. Go to the Parameters tab and choose Visibility. It says, "Specify parameter location." Zoom in on the guest chairs area here, and it's getting kind of crowded. Let's place this script right about here. Now, the Visibility parameter doesn't have a Visibility action that you might associate with it. Instead, that functionality is up here, in this area. So go to Visibility States, and there's always a default state called Visibility State0. Let's rename that and call it "2 Guest Chairs," and then click New, and type "1 Guest Chair." That will be our second State. We're going to leave the Visibility of everything as it is. Then I'll say, "No…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Adding alignment and base-point grips4m 41s
-
Stretching the desk and phone incrementally4m 16s
-
Controlling stretch with a reverse lookup of listed values3m 31s
-
Building position and rotation controls into the armchair2m 35s
-
Positioning and orienting the task chair with a polar grip3m 10s
-
Adding position and flip grips to mirror chairs2m 34s
-
Controlling the visibility of objects from a menu2m 38s
-
Adding an attribute with a field value3m 26s
-
Keeping items centered using the half-distance multiplier2m 55s
-
Advanced topic: Variable-radius filleted corner5m 18s
-
-
-