설명
주요 학습
- Analyze Different types of GIS Data in Civil 3D
- Create Thematic Maps to Display Complex Data in ways that are Easy to Understand
- Export AutoCAD Geometry to Different GIS Formats
- Export Civil 3D Objects to Different GIS Formats
발표자
- Rick EllisRick Ellis is the President of CADapult Software Solutions, Inc., where he provides training and consulting services to clients around the country, helping them get the most out of their design software investment. Rick specializes in Autodesk® Civil 3D®, AutoCAD® Map 3D, Autodesk® InfraWorks™, AutoCAD® Raster Design, and AutoCAD®. He is a member of the Autodesk Developer Network, and author of several critically acclaimed books on AutoCAD Civil 3D, and AutoCAD Map 3D; including the Practical Guide series. Rick continues to use AutoCAD Civil 3D on projects in a production environment, in addition to teaching classes to organizations both large and small around the country. This practical background and approach has made him a sought after instructor by organizations around the world.
RICK ELLIS: So we'll go ahead and get started. I'm sure we'll have some stragglers come in. Just curious for you guys, real brief show of hands, how many of you came to part one of this earlier today or yesterday? Awesome. If you didn't it's OK. It's not like you can't figure this out without it. But knowing that, I'm going to keep some of the preliminary stuff to a minimum. It's all still in your handout, but I don't want to retread ground that we've all been over a bunch.
Just a real short background on this, I have done the first session, which you guys that raised your hands here recently about going to, I've done that session at AU for a couple of years. And wanted to get deeper into it and do a little bit more because 90 minutes is quick in here. And there's a lot of potential ground to cover. So this is kind of an extension of that.
That first session, we looked a lot at how do you get data into Civil 3D, and different ways, and hopefully given you an understanding of what your options are there. In this session overall, the idea is going to be doing stuff with that data once you've got it into Civil 3D. So we'll look at some thematic mapping type thing, we'll look at some analysis type options that you might have, and we'll look at exporting. Because just like importing, there's not just one way to export. So we need to talk about how would you get data out of this environment. So that is it for the background there.
Most of you, if you were in here earlier I went through an introduction, told you a little about myself. Basically for those of you who weren't in here earlier, welcome. I'm Rick Ellis. I'm from the Northwest, specifically a little closer to Portland. And I'm really a CAD trainer, author, consultant. That's what I've been doing for the last 15, 20 years now. Prior to that, more on the design side as a civil designer, CAD manager at a civil firm there in Portland.
So that is a little bit about me. We'll get on with this. I do have three very capable lab assistants, or at least two capable ones and one in a top hat. But these guys are here to help you as we're going through things. I obviously can't stop and take every single question that may come up, especially if it's like, I can't find this file, or Civil 3D crashed and I can't get this. They will help you with that. Raise your hand, get their attention, they can come around and do those types of things with you.
But we've got Scott over on the right side of the room here who can help you out. Scott is an application engineer at CAD Technology Center. Has worked with Civil 3D, taught Civil 3D for a long, long time. Very capable to help you out with questions there. Kurt Marino is our man in the top hat. If any of you have ever ran into or read the Kung Fu Drafter blog online, that is Kurt. Some interesting stuff there always. Kurt's also on the AU advisory council with me, so I've met Kurt and knowing him from a long time here.
And then finally Todd back there in the center by the white board making shadow puppets. And Todd is a customer success manager at Graitech out of Houston. Somehow I got two Houston boys back here, both you and [INAUDIBLE]. And again, Todd's taught classes in Civil 3D and AutoCAD Map, and stuff forever, too. So another great help. Thanks to those guys for coming and helping out with this. It is greatly appreciated on my end and I know they'll be a good help to you as well.
So as far as you guys, I asked earlier, how many of you attended part one? Most of you kind of said that you did. I'm glad for that. Don't feel like you're in trouble if you didn't, or that you're going be lost, because we've got all new fresh data in here and we can all start from scratch. So that will be fine. within that.
With that in mind, a little bit about you guys, how many of you have some sort of GIS background? So quite a few, I mean, for a quote-unquote CAD conference. So that is great. I'm assuming using [INAUDIBLE] products? Is that for the most part-- I'm seeing lots of heads nodding and everything. So I will keep that in mind as we go through stuff and we can maybe talk a little bit.
There are surveys, those of you who were in here earlier with me heard me say this. But if other classes aren't reminding you and asking you please fill these out, it is very, very useful information not just for us as instructors, but the people at AU use that information as well. And a lot of it helps determine and shape not only who is going to be teaching in the future, but what types of classes, what types of topics you guys are interested in with that. It's one of your places to be heard and that's really important. And hopefully you've been hearing people tell you not just from here, but at the keynotes and other places that they want to hear from you that feedback is important and stuff.
That's why I'm here, that's why the three guys in the back are here. We want to make this as good of an experience for you as we can. If you don't feel like this has been good, don't go away angry or something, come up and ask your questions, make sure you can-- we'll do whatever we need to make it right in that, or make it a good experience for you.
So we're going to do a brief introduction. Some of this stuff we've talked about in the first class, but I want to just reinforce a couple of those. And then basically the four things we're going to hit are analyzing different types of GIS data in Civil 3D. Data will come in different shapes and forms and we're going to have different tools to look at that with. So we'll do some of the analyzing that. We're going to create some thematic maps and look at how you can control display of that data so that you can actually tell a little more of a story visually rather than just clicking on something and looking at numbers.
And then we're going to look at exporting. Two different export methods, exporting AutoCAD geometry into different GIS formats. And then the really kind of tricky one here is how do you get Civil 3D data like parcels, or sewer lines, or something that's a Civil 3D AECC object, how do you get that out into AGIS format? Because the map export commands don't recognize that stuff. So that's a little more of a process. And we'll go through that as well.
And like I mentioned in the first class, this is another excerpt or chunk out of that GIS in Civil 3D book that I've written. I do have a copy up here and will give away one at the end of the class. So somebody may get lucky and win one of those.
So with all of that out of the way-- oh, one more thing, questions. To keep things on track lab-wise and stuff, please lean on these assistants in here as far as help if you get stuck in something. I will take a short time kind of at the end of each topic and as time permits and ask questions of the group, or say if you have questions, we'll take them and discuss them shortly there.
After the session I unfortunately have to leave, and pack up my stuff, and go down about one hall, and set up and do this exact same class again. It would have been really convenient for it to be here, but it's not. So I won't be able to stick around a long time. But if you want to come up while I'm packing up things and talk, I'm happy to do that as well. I'll give you my email address if you come up, I can give you a business card, or it's in your handout also so you can get with me that way.
And then finally, something new at AU this year was office hours, or is office hours. And I don't know if other classes they've been talking about this much at all, I'm not seeing a whole lot of that. It's an optional thing for instructors, so we don't have to do it, which is probably why it's not in the actual agenda, you won't see it in the app or anything like that. But what it is is just a chance for us to be in a room and if you guys want to show up, ask questions, talk about this, talk about whatever, I'll be available tonight 5:30 to 6:30 in Lido 3103, which I believe is just one hall over. And that's where my last class of the day is, so that's where I'm going to do all of my office hours for all of the classes.
So I will be there. If you guys want to drop by that is awesome. There's plenty of time to do that before the party. I won't keep any of you from that certainly tonight. But just make you aware that that is an option there. And if you have other classes where they have brought up that they do have office hours, you may want to take advantage of those, too.
So we talked about this this morning if you guys were in the part one. But just a reminder, Civil 3D is made up of AutoCAD, AutoCAD Map, and Civil 3D. The real important thing as it relates to our class is that some of the commands from different pieces of that program may not recognize objects from other parts of the program.
And the real specific example of this which we are going to go through and do today in the lab is if you have a Civil 3D object, like a parcel, and you want to export that out of Civil 3D with all of its data and put it into a shape file, the map export command comes from AutoCAD Map at this level and it doesn't know what an AECC parcel is. So if you try to select them it'll just filter them out and nothing happens. You get frustrated, you think it sucks, you complain about Autodesk and all those other things.
It just wasn't meant to do that. It's not broken, it's just that it was never part of the intent of the programmers. There is another way for us to get there which we'll talk about. But just as an example, that's a command that doesn't recognize things from other parts of the program. So keep that in mind, those will crop up once in a while.
But the first thing we wanted to look at is analyzing GIS data. And since data can be stored in different ways in Civil 3D, you have to know how you have the data before you can decide what commands to use on it. For example here, we're going to start with using AutoCAD objects. For those of you who are in the class this morning when we did the import and we had polygons with object data attached to them, that's what we're talking about. How can we analyze that and work with that data beyond just the labeling that we did?
That is one set of commands and one set of processes. You also have the option of having data connected as features. Again, for those of you who are with me this morning, that was the stuff we did at the end of the lab fairly quickly this morning because we were a little short on time. That once you connected to GIS data, those aren't AutoCAD objects. So the commands that you would use to look at them don't necessarily work. So it's a different process, different way to work with it. So your first step is decide what is it that I've got, and then I can figure out where I'm going from there.
So that's what we're going to do. We're going to start with working with AutoCAD objects. So if you want to open up Civil 3D if it hasn't been already opened on your machine, and I didn't see on these-- was Civil open or was it not? OK, if it's not, right on your desktop there is a shortcut called Programs. There'll be a whole bunch of shortcuts in there. We want Civil 3D Imperial if that was not open for you.
If you have a folder on your desktop with our data set in it, I think that was highlighted for you, leave that open because we're going to do some drag and drop stuff eventually. So we may want that. So I will give you just a moment there to let Civil open up because I know it's not instantaneous. Civil 3D Imperial, yeah, or English. Whatever they called the icon there. So we'll give you just-- just a moment because I know the first time it may take a moment or two to open up.
Once Civil 3D opens, we want to make sure that we're in the Planning and Analysis workspace up at the top. So if that workspace says Civil 3D, go ahead and change it. If it happened to have been left there on planning analysis from before then you're good to go.
And planning and analysis is just the AutoCAD Map tools being displayed. Really that's all it's there. So once you get that open, go ahead and open the drawing in our data set called sewer.dwg. Now the data set for this is on your c-drive. It's C, data sets, then my name, which is Rick Ellis, and then the class-- because there's several folders in there-- is CI138252. It should.
AUDIENCE: [INAUDIBLE]
RICK ELLIS: CI138252. It should be the second one from the bottom.
AUDIENCE: [INAUDIBLE]
RICK ELLIS: You're going to open sewer. So what we have here once this opens up, just while I let a few of you catch up with that, is just AutoCAD polylines and blocks that have object data attached to them. Something that you could have brought in with a map import command, something that you could have made yourself manually. Yeah sure, you're good. What's that?
AUDIENCE: [INAUDIBLE]
RICK ELLIS: OK. So just polylines and blocks. Now to see the data that's attached to those in a very manual way, all you'd have to do is zoom in and pick one of the lines-- doesn't matter which one-- right click, and go to Properties, which is something that we did in the earlier class. And you'll see it's a polyline up at the top, all the general AutoCAD stuff. And then at the bottom is object data sewer pipes and the three fields, it has a project number, a size, and a material on that.
So at a very basic level of analysis, you could go from object to object and just click on it and look at what's there. And just like other AutoCAD features, if you pick one or more objects, or more than one, now I have two polylines. Down here in the object data I can see the project varies because they weren't the same. However, the size and material were both 8 inch PVC. So you could pick multiples. And this data is all live. So if you wanted to edit it, make changes to it, type it into the Properties window, it would update it. If you change the one that says varies, it will make them both the same.
Also as far as editing goes, something to keep in mind when we talk about object data, it's attached to the individual entity, or to the object. So if you erase the object, the data's gone. If you copy the object, it copies the data. If you explode the object, you lose all the data. Those types of things. So it's part of the object just like any other property.
Now if you want to do something a little bit more in-depth, picking one at a time is pretty tedious if you've got a large area. And if I wanted to find all the eight inch pipes, that could take me a while. Or if I wanted to find the PVC pipes that were greater than a certain size, again, that could take a little while.
So there's a different command to do this. And we're going to start by just closing that sewer drawing that we had open. So that's the first unintuitive step that we have. No need to save it, but we closed it and got out of it. Then start a new drawing with the AutoCAD template, so just a new blank drawing. We can go to the Application menu or the big blue letter A, pick New, and then go to the AutoCAD template folder and pick ACAD DWT.
So that's a blank empty drawing. And if you have the hand out there, I'm on page 4 if you are wanting to keep track of them. Blank drawing, I am going to turn off the grid just because it annoys me on there. And you might not have the task pane displayed on your screen like I don't. So if you don't, go to the View tab on the ribbon. Under palettes, the task pane says it's turned on but it sure doesn't look like it. So if I click it to turn it off, click it again to turn it back on, we'll get that large panel on the left hand side of your screen. That's the map 3D task pane. You can also do that at the command line by typing in map w space, that would bring it up as well.
We'll come back to the display manager later on. I want you to pick the Map Explorer tab. This allows us to attach other drawings, kind of like xrefs. The difference is when you attach a drawing here, unlike an xref that would just automatically display the entire drawing, this attaches it and doesn't bring it in. You get to create a query to filter through all of the attached data and you can decide what is copied into the drawing. So that's where we can start to apply some intelligence here.
So to do that attachment to start with, I can do it by drag and drop. If I pick that explorer window that we had with the data set in it-- remember, that's C, data sets, Rick Ellis, and then the class number, whichever that was second from the bottom, I'm just going to take sewer.dwg and drag it and drop it into the map explorer. Don't drop it into the drawing window. That will insert it like a block. But just drag and drop it into the map explorer and you'll see it pops up right here underneath of drawings with a path and the whole deal for it.
You can do this with one file, you can do it with as many as you want. They would just continue to add to this little tree below here. Any attached drawing is now data that's available. It's not in this drawing file, but it's available. So if you wanted to just see what it looked like-- hey, what's in that drawing? You can right click on the drawing folder and pick Quick View.
When you pick Quick View you get a dialog box. And the drawings or drawing is listed there, and it says zoom to extents of the selected drawing. I want to have that on there. If that didn't pop up, if it just did something, that means you right click on the drawing file itself one level down, which would do the quick view without the zoom extents.
So right click on the Drawings folder, do Quick View, then pick OK, and you should see once it's done, there you go, there is the sewer pipes from that other file. They are not in the drawing, that's a preview. As soon as you redraw it goes away. Also if you tried to pick it, it's a preview image. If it automatically disappeared on you as soon as it came in-- sometimes it flashes and goes away-- that means you had an auto save that happened right when you did the Quick View that forced a redraw that made it disappear. Just do the Quick View again and it will show up.
But it's a preview image because maybe you don't even know what the drawing you attached look like because you haven't opened it. It might be huge. If I type R to redraw, that cleans it up. Now the more interesting or fun part of this. We want to define a query. And the way you define a query is in the map explorer. You go down here under current query and just right click on it and pick Define. You could also double click on the current query, that brings up the same thing.
This looks like somewhat of a complex dialog box. We're going to focus in on this lower left corner, query types. Location, you probably understand what that would be. You're going to draw a window or an area, only objects in this area. Property is AutoCAD property like layer, color, line type, elevation, length, those types of things. Data and SQL, those are database attribute values. So we want to go to Data and there it's going to show me all the information about my object data.
So I'm going to tell it I want to do a data condition of object data. And it shows me then there's two tables, sewer pipe data and sewer structures. You can probably guess what those are. So we want to go find pipes. And in our case I want to find pipes that are greater than or equal to a diameter of 10. So I want sewer pipe data. The size attribute operator is greater than or equal to, and my value is 10. OK, so we're saying look through any of the attached drawings no matter how many there are and find the objects that have object data attached to them with a table named sewer pipe data and the size field is greater than or equal to 10. So it's going to sort through and find all those objects for us. I'll click OK and that's the first parameter of my query.
Now before we do anything, there is this middle section, query mode. Preview, draw, and report. Preview is what it sounds like. It's a quick view like we just did a few minutes ago, but a quick view of only the objects that meet whatever this query criteria is. So it would just preview the 10 inch or greater pipes on the screen. Soon as you redraw they'd go away. They're not really here. Draw will actually draw them or copy them into this file. So if it finds 25 pipes, you'd have 25 lines in the drawing now. And then finally Report, as soon as you click that you get the Options button underneath it. And that allows you to configure a report that's just a comma delimited Ascii file of whatever information you want to pull off of that. So maybe you want to just have it report the pipe size, and material, and length for all the 10 inch and greater pipes. And you'd get a list of those. So you can do some quantity takeoffs and things like that.
In our case, we're going to leave it set to preview because I want to just test this out make sure we did it right. And then at the bottom we have OK, Cancel, and Help like we normally do, and then we have Execute Query, which is a little different. Because normally in AutoCAD we're used to OK means go. That was do whatever I set up.
AUDIENCE: Except profiles.
RICK ELLIS: Yeah, except for profiles. There's always-- there's plenty of except for's in here. But overall we're pretty used to OK means go do this. If you click OK here, what happens is it saves all the changes to this dialog box and closes it, and nothing happens. If you cancel, it discards all the changes you made to that dialog box and nothing happens. But execute is actually what does it. So click Execute Query.
AUDIENCE: [INAUDIBLE]
RICK ELLIS: You'll get a preview of that. Again, if it just flashed on your screen and went away, that was a redraw from an autosave. So just go back up to current query and click Define and then run it again. It will be one click to do it. At the command line it shows me it found 81 objects. So it found 81 pipes that were 10 inches and larger in the attached drawing.
So I could do whatever I want to with these from here on out. I could also get more specific. Maybe I want to drill a little deeper into that data and I want to find not only the pipes that are greater than or equal to 10 inches, but I also want to find out which ones are concrete. Because that's what I need to know.
So start off, type R for redraw and enter, get that off of our screen. We'll go back to the current query, right click, and pick Define. It remembers what we just ran so that property is still there, the greater than or equal to 10 inches. Then we'll make sure and is selected as our operator and pick data again. Select object data. We're still going to be sewer pipe data for the table. This time we're going to pick material and the value is equal to CON.
AUDIENCE: Is that case sensitive?
RICK ELLIS: I don't believe that is case sensitive on that. But it does mean you really have to know your data because this doesn't have a list of what the possible values are. That's one of the downsides of this command is that it's not-- you don't get to browse or pick out of a existing list. And you can start to see where this stuff all works pretty good if you have standards in place, and you have done things very consistently, and stuff like that.
So we'll pick OK. Now I have what would be called a compound query. I have the greater than 10 inch-- or greater than or equal to 10-- and the concrete material I'll show on there. Then I'm going to change the query mode to draw. I wanted to actually copy in or draw in the objects that meet that criteria. Pick Execute Query and those are the ones.
So if I wanted to confirm that, I could pick one of those lines, right click, and go into the AutoCAD properties command again. And there you can see the one I picked happens to be a 15 inch concrete pipe we've got down at the bottom. So exactly what I would be expecting to see off of that.
Now, that lets you analyze and just find that information. Maybe that's all you need to do is just print me out a map of the sizes of pipes that are there and do that. You could do a report like we looked at on there. Also we're not going to do it in this class, but you could edit this information and save it back to the original file. So that gets pretty interesting at some point, because without ever opening this file you could modify it. Pretty powerful as well, so it's another whole different area of things that go into.
What I want is a copy. I just want to keep this stuff that I queried in, I want to keep that standalone by itself. That's kind of the answer to my question that I analyzed. So to do that, all I need to do is right click in the map explorer on the attached drawing file and pick Detach. And you may get a little warning balloon depending on your settings. It says, hey, you detached a bunch of objects that have been queried. By doing that, you're breaking the link between these objects and their source, which means if I do edit them now I can't save them back. Which in many cases is what you want to do. If you do want to keep it attached and save back, then just don't detach from there. So it's just a-- depends on what your purpose is.
But that is how you can begin to analyze and work with drawing data, or has AutoCAD objects and attached data to it. Little bit of a process, but it really lets you-- you can start to think about how could I look at my data in different ways? I mean, one of the queries we didn't look at would include something like layer. I only want objects on this layer that have this property. You could look at parcels that have data on them and say, I want to in this area find the parcels that are a certain zoning and their property value is in this range. If you have data, you can start answering much more complex questions like that.
So that's specifically with drawing objects. Now if you have attached features, then it's a little bit different story. So we're going to go to page 11 and we'll open up a drawing called feature filter that is in our data set here. So C, data sets, my name, and then feature filter. And in the Task pane, instead of Map Explorer go to the Display Manager tab.
So what's been set up here for us is this is a drawing that already has two different files attached to it. These were, I believe, SDF files, not shape files. But the format doesn't matter. It's just we have attached data for parcels and for streets. And using the same process that we looked at earlier this morning in the level 1 class.
Now if I pick the streets layer and then go up to the Table button, it brings up the table with all the data for the streets. And I can see here we have things like length, we have the name, we have an owner column, if it's paved or not, so on and so forth with that.
Now down at the bottom, there is this-- it's not a button, it almost looks like just a little link at the bottom of the table, it's called Search to Select. Everybody see that? If I pick that, it brings up a Query Builder dialog box. Most of the attached query operations will work with this type of dialogue box. They'll reuse that pretty often. So once you get used to it it's not too bad there.
So what I can do is go over to Property-- pick that Property button-- and I can see I have text properties and numeric properties. I'm going to pick Owner under text properties, then I'll pick the equals button up above, and it says value. What value do I want to put in there?
With that highlighted, I'm going to go over to this green button, which is get values for owner. And I'll click on that green button again, and that shows you a list of each of the unique values in that field. So unlike the object data thing we did a little bit ago where I said, well, it's CON, it's not CONC, or concrete, this actually shows you the list we can pick from. So that helps quite a bit.
We're going to just select out of that list the owner name of PVT. So that's our private streets. Once that's selected I can pick insert value, the button right below that list at the bottom. And by clicking here you can see it takes that value and puts it over here into the syntax for us. So it writes the expression for you. Now, if you had typed it in and you got it all typed in right and everything, it'll all work. Once you've done that, go ahead and click OK.
Now what happened is that it went through this table, it found all of the streets that are marked as private owner, highlighted them, and selected them graphically out on the screen. So pretty quickly we just drilled through the data and said, hey, find all the private streets. So I can see them, I could then modify and make changes if I wanted to on that. So a little easier to go through that and search through the data. This is with connected data. Everybody with me there so far?
OK, next we're going to move on to another drawing. I'll close out of this data window, open up another drawing that's in our data set, and it is called feature query. And we'll open that. Now very similar here, this drawing has parcels and streets in it. But it also has a feature layer that is called flood. And that's this big polygon or two out here that are showing the flood plain.
So if what I wanted to do is go find all of the parcels that had an improved value greater than 0 assigned to the parcels and that they're in the flood plain, we can set up a query to do that. So to start with I'm going to pick the Parcels feature layer. Once that's highlighted, you'll get a new ribbon up at the top for vector layer, a bunch of commands to work with it. And we want the command Query to Filter.
So over here on the left hand side, Query to Filter up at the top. That will bring up something that looks hopefully familiar from the last command. Same dialog box and operators that we worked with before. So for this, I'm going to start by using this button, Locate on Map. When I pick that I'm going to scroll down to touching any part of-- so the old AutoCAD crossing selection set-- and a polygon. So I want to find all of the features that are touching any part of a particular polygon.
Once you do that, at the command line it says go ahead and draw a boundary. So you could draw a boundary, or in my case instead of creating one I'm going to type s for select and Enter. And then I'm just going to pick this object, which is the big boundary for the floodplain. So pick the big blue boundary.
So currently what our query says is just find any of the polygons that touch the big blue flood plain. To get a little bit more specific than that, I'll go up and I'll select the And option. So I'll click the button that says And. Then I'm going to go to the Property button. And under numeric properties, eventually you will find improved value, IMP value. So I want improved value greater than zero. So you can just type in 0 for the value.
So what we were told based on our data is that any parcel that has an improved value of zero is one that is owned by the city. The city isn't assigning those to it, so it's a private lot. So you have polygon and an improved value greater than zero. Now, to check this to see if it's going to work right, there's a button down in the lower left corner that says Validate. That will check the syntax of your equation here. So if your query isn't right, you're going to get errors and hopefully information telling you where the errors are at so you can go back and fix that.
That all looks good. So we can go ahead and just pick OK. And once it goes through and does the query, now I only see the parcels with an improved value greater than zero and that are touching that particular polygon. So
AUDIENCE: Can you change your background color?
RICK ELLIS: Oh, yeah, I will-- let's do that.
Is that better, or is that way to--
AUDIENCE: Way better.
RICK ELLIS: Way better? OK, way better, good. Until I put something yellow up there and it just fades in. So process was, picked the layer you want to filter on. So we would pick parcels. We went up and picked-- that will give you a new ribbon. We picked Create a Query. And then we said in an area based on a polygon, we selected it, and then we did an improved value greater than 0. So questions on either one of those before we shift gears a little bit? I'll get it.
AUDIENCE: [INAUDIBLE]
RICK ELLIS: Oh, we're in the wrong drawing. That's OK. Yes?
AUDIENCE: Same queries we executed in [INAUDIBLE] files [INAUDIBLE]
RICK ELLIS: Question was, can the same queries be executed against GIS files like shape files in future classes? That's what we just did. These were all attached. They were SDF files, but it works the exact same way with shape files, geodatabases that are connected. Anything that you would connect through the Data Connect button here, that process is the same. So yes?
AUDIENCE: So if I wanted to print this out or anything, it's not like the other where if you do regen or anything it disappears. This is here for me to print and display?
RICK ELLIS: Yes. Now, the question was, can I print this? Is it going to disappear if I redraw or anything like that? No, this will print. The one tricky thing in there is it-- well, in just a minute we're going to look at display styles, and theming on this, and how you can control colors. It's not based off of the AutoCAD 256 color palette. So if you're looking to do like CTB plotting, not going to work so well there, more true color stuff. So yes?
AUDIENCE: Is the task pane exclusive to Civil 3D?
RICK ELLIS: Question was, is the task pane exclusive to Civil 3D? No it's exclusive to Map. Since Map is part of Civil, it's in both of those. Standalone AutoCAD you will not have that in there. Which means this stuff, because it comes from here, won't show up in AutoCAD by itself. So that is a big caveat. Up here in the front. Yeah, right here.
AUDIENCE: You bring a drawing as an example. If you bring in a shape file, can you do the same thing?
RICK ELLIS: Yeah. The question was, can I do this with a shape file? And these actually came from a shape file. So we were doing it to a connection to a shape file. If you do the import on a shape file where do you get AutoCAD objects, then you can't use these tools that I just did. You'd have to use the first set of tools, which was where we attached the drawing and do the query of the other drawing. So these two, and then we'll have to keep going. So yes?
AUDIENCE: I was just wondering if you could extract that data to keep it to lock? Like if there's no-- it's colored, but I want to know which parcels stay on.
RICK ELLIS: Sure. So you want to just label them?
AUDIENCE: No, I want to be able to export them.
RICK ELLIS: Oh, export out as actual data.
AUDIENCE: You know, map, plot number, [INAUDIBLE]
RICK ELLIS: Yeah. That is if you pick the layer and just pick Table, you'll get a table of all of it. And you can copy and paste out of there, or you can export out of there too.
AUDIENCE: One last question?
RICK ELLIS: Yes.
AUDIENCE: It appears that you [INAUDIBLE] start a new drawing by just getting the parts of the letter in [INAUDIBLE]
RICK ELLIS: Yeah the question was-- if I heard it all correctly, I apologize-- can I start a new drawing of just this information here? Now, there is an option to convert this stuff to AutoCAD objects. There's a command to do that. The problem is you will lose all of the connectivity to the shape file. The other option is if you just wanted objects rather than the feature stuff, do the map import command instead of this connection. That will create AutoCAD polylines and things like that.
And that's why, for those of you who were in the class this morning, I think I mentioned it's not that connecting is better than importing or vise versa. They're just two different flavors or two different ways to do the same thing. And depending upon what your needs are and what you want to do with it, then make the decision about which command to use.
The way I think about Map and using it is it's a big tool box. And you want to pull the right tool out for whatever job you're doing. And the better you can understand those tools, the better you're going to be informed and be able to make decisions on that. Which is why I'm kind of showing you multiple ways to do the same thing because there isn't a quote-unquote best practice, use this one, or those they would have gotten rid of the tool altogether. It's just some people need one, some people need the other. Sometimes I'll use different ones on different projects. So again, don't want to cut you guys off, but I do want to keep us semi on track. So I'll pick up more questions afterwards if you guys would like.
So thematic maps. Basically within thematic maps, we're going to do two different things, or three different things here, really. We're going to look at scale-dependent styles, which are styles for connected features that if you zoom in some stuff may show up or disappear. And if you zoom out, other things may show up or disappear based on your zoom scale. Just another way to depict data properly for you, or in a more useful way. And then we'll do actual thematic mapping of linear objects and thematic mapping of polygons from there.
So scale dependent styles, like I said, means that they can be styles that can be applied to the same objects so that the same object displays different ways at different scales. So in the example below here, we have on the left just parcels. You zoom in a little bit, you get sewer lines and structures that show up, and you zoom in a little bit more and you get labeling on them. That's just one example of scale-dependent styles. And you can have styles of no display or you can be changing the style. Because you might zoom out to a point I don't want to see them at all so we'll turn them off.
So there's some information about that on page 15 and 16 for you. Our exercise for us to work through together starts on page 18. So if you want to turn to page 18, and we're going to open up a drawing that I have for you called scale-dependent styles in that same data set folder. So hopefully it's showing up there.
So here we've got a drawing that has some sewer lines, some manholes, and some parcels attached to it. And the first thing we're going to do is just look at what's already defined here, or what's been set up in this drawing. When Map 3D is in Civil, the status bar down here at the bottom can be in a couple of different states that may look different and display different information.
I doubt that you guys have a scale thing here, it says click to adjust the Map 3D scale. This is not the annotation scale. So to get that turned on, if you look on page 18 there's a command called Mapstatusbar, all one word, no spaces, just Mapstatusbar, and use the option to show it. That will make this scale show up just so we can see what's going on.
Now if we start to zoom in on some of these sewer lines, once you get close enough you'll notice that the structures appear and they're labeled. And if you zoom out farther, the labels go away. So those have already been set up with scale dependent styles. And to look at that I'm going to just start by picking on the sewer manhole and then picking the Style button. And this is already set up so we don't have to do anything here. But what this is is up at the top of this dialog box their scale ranges. So it says from 0 to 2000 it's going to look like this dot. And since that row was selected, these values down below are what applied to it. So you can see there's some text on it.
If I click the next row, it says from 2,000 to 5,000 it also displays with a dot or a green block there on it, but the feature label is none. So that turned it off from scale 2,000 to 5,000. Above 5,000 these symbols don't show up at all. They're turned off. So if it always showed and there was no scale-dependent stuff going on, you would just have one row up here that says from zero to infinity. That's the default.
That's what we'll see if we close out of this, close out of that , area go down and pick the sanitary lines layer in the display manager, and then pick the Style button. This one by default says zero to infinity, big green line. One row, that's what controls it down here. There's no labels on it. It's just a big green line all the time.
So what we want is to go up to the top. And we're going to pick Add Scale Range. So now we've got two lines. We want the first one to be 0 to 2,000, the second one is going to be 2,000 to 5,000. Once you've done that, select the row that has the 0 to 2,000 range in it. That one's active. That means everything we do at the bottom will apply just to that zero to 2,000 range.
So once that's selected-- this would be page 20-- what we're going to do is go over to the right side where it says feature label and click in that field. For our context size we're going to pick Map, and our units we're going to select Feet. Now what this means here is this top area that says Device and Map, these are always confusing terms and I have to think about them for a moment when we get started. Map means actual size. So if I put in Map, Feet, and put them it as 10, it's 10 feet tall. You zoom in, it's 10 feet tall, you zoom out, it's 10 feet tall.
Device rescales, kind of like annotative text. It's not annotative text, but it's the same concept. So it's a device scale. So you tell it how many inches you would like it to plot, or something along those lines. So we're going to use just a static height. Map is in feet. We'll come down and pick And Label, this button. Oh, it went back, didn't it? Let's go back up here and pick feet, because it's-- thank you for catching that. It switched over as soon as we picked Add Labels, because somebody's partial to metric, I guess.
Anyway we've got this new label. It's going to be mtext, it's going to be Arial, it's going to be a size of 10. So that would be 10 feet. And down here are text contents. What do we want it to bring off of that? I'm going to select size. Once we've got those set, go ahead and pick Apply. You can pick Close. And then if we close out of the style manager, what we should see is as we zoom in on those sewer lines, once you get closer than the one to 2,000 scale, you see that there are pipe diameters that show up.
AUDIENCE: The background's black. Yours is white.
RICK ELLIS: So it's a little-- yeah, thank you, John. If yours does not show up and it is black because of that, when you're in the style for that, my feature label, you could always pick a different text color here. So pick white, or yellow, or something different so that-- I'll make it orange, that'll show up on everything, right? It's what you do on the projector is make it the ugliest thing it can be and then it shows up well.
But that gives us labels only at that scale. Again, zoom back out, labels disappear. So scale-dependent styles, it doesn't have to be just labels. It could be whether it shows or not, you could have it be a green line when you're zoomed out and a blue line when you zoom in, or however you want to do things mapping wise. But allows you to accommodate multiple scales.
So that's one way of just showing your data. The other is thematic mapping, or this all kind of goes under the whole term of thematic mapping, but the technical thematic mapping term is it's just a way for you to take maps and see them in general terms and base their display on their data. And it helps you see things like trends, and connections, and distributions, and different things like that.
So for instance, this picture over here is a bunch of parcels and I believe they were colored by land value. So different colors mean different values. And lets you paint a picture pretty quickly with that. So that's all that I was going to say about it. If we go in and do it, let's go over to page 25, I believe, in the handout. And open up the drawing called sewer theme. So sewer theme. And here's where I got that yellow thing, I told you it was going to happen. I'm going to jump back here to a dark background. There we go. Now you can see your sewer lines.
So with these, this is just like that first drawing that we started off with. And in that drawing we had polylines with object data. I could pick any of these, and go to Properties, and see it's a polyline with object data. So it's not something you would typically expect to see in the display manager.
However, we can use the thematic mapping tools in the display manager still with this. I can go to the display manager, I can click on Data, Add Drawing Data, and then select Drawing Layer. So Data, Add Drawing Data, Drawing Layer. This is page 25. Then it shows me a list of layers in the current drawing. I'm going to select san pipe main, click OK. So that just created a layer for those drawing objects.
Now I can pick that layer and right click on it and go to Add Style, Theme. So that takes me through the thematic mapping wizard. It says, to start with I'm going to use a set of specific values. I'll pick the Values button. Then it asks me, what do I want to obtain it from? So obtained from, I'll pick the ellipsis button next to it, or the More button. And I'm going to tell it object data, sewer pipe data and size. So I'm going to have it sort through all of these objects on that one layer and look for their different size values.
Once I've pointed it in the right direction I can pick read data, and here's the results. It says there are a value of 10, we've got 22 of them. Value of 12, there's 24, so on and so forth. Down here we have eight inch pipes, we have 200. So I can select a specific value or I can just right click and pick Select All, which is what I want to do. Click OK. And then it says, for these values how do you want to change them? Do you want to change their color, their line type, their plot style, hatching if it was something that was closed, text that you would put on it, all kinds of stuff.
I'm just going to pick the Color column, come down here to Ramps, and pick Rainbow because that should show up on my screen. And it just color codes the different sizes with different colors. And then pick Done. So there, of course, I got a little darker again. Hopefully you can see a little bit, probably not very much. I'm going to switch back over to that other screen-- the white background so that we can see that.
AUDIENCE: [INAUDIBLE]
RICK ELLIS: Well these projectors are pretty good, but they're not-- but there's the white background version of it. There is the different colors matched up with the different colors of the different pipes. So we're displaying those thematically. Real basic thing with linear objects.
The important thing out of that is that those were from AutoCAD entities. They weren't a connected shape file. This was just AutoCAD stuff. So if you've got stuff in your drawing that has data attached to it, you can do that thematic mapping. Also not just attach data, you can use AutoCAD properties, too. So you can have it colored differently by area, or elevation, or any AutoCAD property that's there.
AUDIENCE: You can do quick learning?
RICK ELLIS: Yes you can make a legend out of this. The legend stuff now goes in paper space. So what you do is you'll go to your layout, this will be in there. There'll be a Legend button up on the ribbon. You click that and it automatically just takes the legend that's in here, plops it into a little area on your screen. Looks slick.
Also just to give you a wild idea with this, notice up here at the top it says my map display is default. I never changed that. There is an option, you can go up here and I just don't have time to do it. You can make multiple what they call maps, which is just views of this display manager stuff. So I could do another thematic map on those same pipes by their material, make them different colors by different materials. So I could have a map that says pipe size and another one that says pipe material, and just toggle between them. And the display of them will dynamically update on the screen automatically. So it's just a way to convey information without putting a whole bunch of text on the drawing.
AUDIENCE: Can you make exhibits for groups of people?
RICK ELLIS: Yeah, exactly. Question was, can you make exhibits for different groups of people? Absolutely. That's what we're--
AUDIENCE: [INAUDIBLE]
RICK ELLIS: Yeah that's what we're talking about is trying to leverage some of this data that's out there already, and without you guys having to recreate everything. I mean, yes, you could draw this thing all color coded. It's going to take you forever and you're going to hate it. And your boss is going to hate how long it took. And you know, I don't like the blue, and all that stuff. So you can go back and you can fix that.
So let's look at this for polygons also on our parcels that we had. And there's another drawing, it's called Parcel Theme in your data set. Parcel Theme. Open it up, you'll notice nothing real different, same stuff. It's a file with parcels attached, my sewer lines just happened to be turned off in here for display purposes.
We're going to pick the Parcels feature layer in the Display Manager. Pick that and go up and pick the Style button right above it. Pick that, we'll pick the Style button. See it's zero to infinity, so that means always display it. That's fine. What we're going to down at the bottom is there's a button that says New Theme.
We can pick New Theme. All we have to do there is pick the property. Now just so you know, this is an attached shape file rather than AutoCAD objects. If it was AutoCAD objects we would have to go through the process of making a layer out of it in the display manager from auto, just like we did with the sewer pipes. But if it's attached data like this is, I just come directly here, I'll pick my property, let's scroll down and let's do this as-- we'll do land value.
It tells me my minimum and maximum values based on the data set. I have different options of distributions. So how are those ranges going to be made up? I'm going to set it to the [INAUDIBLE] natural breaks option. I can pick that. Number of ranges will be five. Here's my five colors for those different ranges. You've got a button here where you could change the colors as well. I'll just take the default. And then for the legend text, I'm going to change that and type in land value.
Then pick OK. It goes out and redisplays those and gives you a legend off below that in the map display manager. So real quick we took the exact same data, looked at it based on land value. This is, ooh, ahh, pretty cool. We're having--
AUDIENCE: Ooh.
[LAUGHTER]
RICK ELLIS: Thank you. We're waking up, thank you. But again, looking we looked at a small area of data. This can look at counties or states worth of parcels and things like that, sorting through thousands of records or hundreds of thousands of records from there.
AUDIENCE: [INAUDIBLE]
RICK ELLIS: Yeah, one-- yes?
AUDIENCE: Can you make a legend out of the table?
RICK ELLIS: Question is, can I make a legend of the table? Yes, it happens in the layout. So if you make a layout on the ribbon up at the top there'll be a button to create a legend, and it'll pull directly from this data. For the sake of time, since I believe we only have about 15 minutes left, I'm going to keep forging ahead. Because I don't want to miss some of the cool stuff here at the end.
Exporting is the next thing I'm going to look at. We're going to export AutoCAD geometry first. The big thing to understand is how is your data put together. This morning earlier we talked about feature classes, very strict definitions of how GIS data is put together. With that, you can't just take a drawing and take the entire drawing and say make GIS data out of it, cram it all into one file, hand it off. You laugh, I've had people ask me that all the time. It doesn't work that way. Kind of like when somebody gives you a drawing with everything on layer zero, doesn't work well.
So we don't want to do that. What we have to have is data classified in our drawing properly so we can export it. Which means things like objects are on the right layer, and data's attached the right way, and so on. So drawing standards are going to be critical with that. And then we can be selective on the exports. So we're going to say, take all the objects off of the sewer line layer and export them to a shape file. Take all the objects off the sewer structure layer and export that to a shape file. So it's going to be a process of multiple exports depending on what you're going to get rid.
This command that we're looking at does not work with Civil 3D objects. So alignments, parcels, points, sewer pipe networks. Anything that is a Civil 3D object, this command doesn't recognize. So this is AutoCAD objects only. If I jump back over to that, let's go in and open up a drawing that we have in our data set called tax lot polygons. This is on page 33.
So tax lot polygons, we'll open that. This is, again, just polygons with object data attached. So AutoCAD objects, normal stuff. To do this, the command that exports it is another one they forgot to get on the ribbon. It's going to becoming a theme apparently. Map Export is the command, so M-A-P E-X-P-O-R-T. Autocomplete helps out those of us who can't spell.
The next thing is you have to tell it where to export it to. So browse back to our data set. There's a folder called export. Just pick that, that's where the shape files are going to land. At the bottom of the dialog box, file types. You can see the different file types we can export. Go ahead and pick ESRI shape file just because that's what we've been using. So file types at the bottom is a shape file.
File name, let's go ahead and call it parcels and then go ahead and click OK. And you all thought you were done when you clicked OK and we'd have a shape file. No such luck. You have to tell it a little bit, what are you sending out? Are they points, lines, polygons, or text? These are polygons. So go ahead and pick polygons so it knows what data type we're talking about. And then we can filter through it. We can do a select all, you can do a filter where we filter on different types of data, or you can also filter by layer. If you pick the Layer button, this shows you a list of all the layers in the drawing. This drawing's pretty simple, it's that one called tax lot polygon. That's the one we want.
Then go to the Data tab in the middle. Notice it's empty. If you don't select anything here, all you export is the geometry. You lose all of the attached data that's there. So what you want to do is pick Select Attributes, then expand object data and pick the Parcels table. Now notice you can expand that and be selective and say, I don't want to export this, this, or this if you want to be selective with it. But we'll do the whole thing.
So the Parcels table, we'll pick OK. Let's go to the Options tab. If your drawing had a coordinate system assigned to it, you could assign a coordinate system to the export that's different and have it converted from whatever your drawing is to whatever you're going to on the way out. We're not going to worry about that.
For polygons, there is this check box that says treat closed polylines as polygons. And we don't need to click that because these were m polygons. If you have polylines that are polygons, you need to check that box to tell it if it's a closed polyline, assume that's a polygon. Otherwise it will export what should be polygon shapes into a bunch of lines. So you'll have a bunch of boundaries with no areas.
We don't have to worry about that, just click OK. Let it run and process this. When it's done, you will have a shape file. If you want to see that in Windows Explorer-- I picked the wrong one. There it is. Yes ma'am?
AUDIENCE: One of the things [INAUDIBLE] of the shape [INAUDIBLE]
RICK ELLIS: Yeah. Setting the coordinate system. Before we start that command, if you just go up to the Map Setup tab, you can pick a coordinate system for the drawing, then it will export that. All right, we're down to about five minutes left. I don't want to keep you guys past that. The last exercise is in your handout. I'll leave it for you guys if you want to run through it there on your own back at your office. If you guys want the data set that's with this, it's nothing real special. You probably have data that will work just fine, too. But feel free to email me and I will do that.
Also if you'd rather go over it in like office hours, I will. Just give you the heads-up on it, to export Civil 3D objects it's going to be kind of a two step process. You're going to export to an SDF file, because that's the only file you can export to. And then you're going to use the bulk copy command to copy that data to either a shape file, or a geodatabase, or whatever format you want. So it's a two step process. It is in the handout there for you. But-- yes?
AUDIENCE: There's a different [INAUDIBLE] structures, did we use SSA?
RICK ELLIS: Yeah.
AUDIENCE: Import into SSA and export out of there [INAUDIBLE]
RICK ELLIS: Yeah, that's another way to get there for pipes is that you can-- this will work with everything, which is the great thing. So with that, a couple of other GIS topics you might be interested in. Those legends that we kept asking about, they are part of this as well. I also told you guys I'd give away a book before we left. I have no real great fair way to do this. So we're going to go-- we have any November birthdays? OK, you don't count. How about who's the closest, what have you got?
AUDIENCE: December 12th.
RICK ELLIS: 12th?
AUDIENCE: Yeah. December 11.
RICK ELLIS: December 12th. I said November birthdays, this month. OK, what's your-- what is it?
AUDIENCE: November 21st.
RICK ELLIS: 21st, OK.
AUDIENCE: Today.
RICK ELLIS: Today. You win. [APPLAUSE] That was-- happy birthday. So if you will come up with your driver's license after the class, and I'll confirm the birthday, we can-- no, well, happy birthday. I've got a book for you if-- that's the least we can do, it seems like.
With that, if you still have questions, my email address is there. I will be in office hours 5:30 to 6:30. I have more cards if you want cards, definitely come up here, I'll hand some of those out. Thank you guys for coming. Do please fill out your class surveys. Have a great week at AU.
Downloads
태그
제품 | |
산업 분야 | |
주제 |