AutoCAD-AutoDeskLand survey

AutoCAD Civil 3D, import points from an external database

In this post we will see how to import data from an external database, although we will have to consider some extra aspects in the handling of points. We will base ourselves on the example that a Civil 3D tutorial brings, using the files points-1.dwg and points.mdb, at the end there are the links to download them.

Create Description Keys

The objective of this is to configure how Civil 3D will handle the points that we import, where they will be stored and under what criteria it will select them from the database. If we open the database, apart from the y, x, z coordinate we see the description field (DSC) contains the type of point so we want to be able to filter these points.

Civil autocad 3d

Civil autocad 3d First we open the file points-1.dwg that already has layers configured for this exercise. Now in the tools space, in the “settings” tab, we select “Descriptions key Sets” and we right click and choose “new”.

This opens a panel where we will put the name of the set, which we will give name and description.

I am using the name "Storm" and the description "storm control points". Then we do "accept".

Now let's define how Civil 3D will handle the filter both to import the data and to select the layer where it will be stored.

Civil autocad 3d We expand the set by right clicking and selecting "Edit Keys", which allows us to see the properties in panorama mode.

Here we are going to add two codes, the first one that is called POND *, here we will select that the Layer V-NODE-STRM

And the other MHST *, we will change the format to STORM MH in the second case, which would imply that this would be its label but the first one will leave it as $ *, for the description to come complete and always on the same layer.

This would imply that any point whose description begins with POND or MHST, followed by any character will be included in the collection. Keep in mind this process is "case sensitive", it implies that it is case-sensitive.

Civil autocad 3d

Civil autocad 3dIn both cases, both the style and the label style disable them. In order to control them at the point group level, which is the next thing we will do.

Finally we select the green arrow in the right corner to save the configuration.

 

2. Create groups of points

Civil autocad 3d Now what interests us is that the imported points are grouped, in this case according to a characteristic that they have in the database. To do this, we go to the "prospector" tab and in the point groups option we right click, selecting "new".

Let's first create a group that we will call “storm manholes” and we will leave the point and labels style as Standard. Then in the match filter (raw Desc Matching) we choose MHST *, this would make all the points that have this Civil autocad 3dIn their description they would go to this group.

The second group we will call "Detention Point" will leave as filter POND *, always leaving Standard in the style of point and label although the latter can be done at once to the group called "_All Points".

Of course, if we see the Query Builder tab appears this we have chosen in SQL, which implies that someone who mastered this code can do more complex things.

 

3. Import points from the database

Civil autocad 3d The most complicated thing we have done, now what comes is to import them.

Always on the prospector tab, select Points with the right mouse button and choose "Create".

This displays a panel with different options, in this case we will use the one on the far right to import points. Once selected, request us

 

Civil autocad 3d

 

 

 

It should be clarified that in the format you can choose other data import options such as text separated by commas, spaces and different forms of point order, x, y, z coordinates

Civil autocad 3d

Here we choose that the import is from an external database and then we select the path of the database. We leave the lower alternatives unselected, then ok.

The final result can be displayed by right clicking on "_all points" and choosing the zoom to full view of the points.

When the mouse pointer over the points, the tool tip shows the properties of the point, it is necessary to make a right click on each group of points and select the properties, in case of the yellow icon with an exclamation point, select The update option.Civil autocad 3d

 

 

 

To do the exercise you can download here The dwg file With imported points.

If you want to do it again, you can delete all the existing points to import them again by following the steps in this exercise.

Golgi Alvarez

Writer, researcher, specialist in Land Management Models. He has participated in the conceptualization and implementation of models such as: National Property Administration System SINAP in Honduras, Management Model of Joint Municipalities in Honduras, Integrated Cadastre-Registry Management Model in Nicaragua, Territory Administration System SAT in Colombia . Editor of the Geofumadas knowledge blog since 2007 and creator of the AulaGEO Academy that includes more than 100 courses on GIS - CAD - BIM - Digital Twins topics.

Related Articles

13 Comments

  1. For I can not import ptos top. In civil autod and plot and make it solid to find volume if you can help me

  2. Hi, how are you? I can ask you to format the database in .mdb to practice. Thanks and regards.

  3. Thanks for the tutorial, now as I import the blocks so that they remain in my drawing, that is, in acad land, the keys are used to import blocks, such as those of the stations, the pole trees, in short, I would appreciate the collaboration in this theme. do in civil 3d and what is the procedure ..

  4. I WOULD THANK YOU VERY MUCH IF YOU EXPLAIN HOW TO LEAVE THE PRESET LABEL STYLE, AS IT MEETS CONFUSING THEM EVERY TIME I MATTER THE POINTS.

    I WILL BE WAITING FOR THE TIP.

    THANKS IN ADVANCE

  5. G Thank you very much for your contribution. It has been very useful to me

  6. Well, no idea what may be happening. It could be that the format is not as numbers but as characters, but it should not be a problem.

  7. THANK YOU FOR THE ILLUSTRATIVE CONTRIBUTION

  8. Thanks for the tutorial this is good, but I have problems when I do it alone since when importing the points from the database in access it says that I can not or that the file is damaged, thank you help me since not if I am doing something wrong

  9. It is not necessary, the case is that Land Desktop inherits something that was SoftDesk in that there should be a database that stored the criteria and while there was an open project was impossible to work.

    In case of Civil, although it can be associated to a database, inside the map can store features like xml.

  10. First thank you for the teaching you give your page, and a civil doubt 3d unlike land desktop is not necessary to associate it with a project.

  11. Thank you Master, I followed with these help, like profile files, etc.

Leave a comment

Your email address will not be published. Required fields are marked with *

Back to top button