Archive Page 2

AutoCAD Map3D 2011 and Raster Design OE

Anyone that uses MrSID image files in their Map3D or Civil 3D know that you  need to install the Raster Design Object Enabler or Raster Design installed to insert them with the Map image insert command. Problem is right now there is no Raster Design OE for the 2011 versions. However thanks to a geeky customer there is a work around.

The first step is you need a working version of an AutoCAD 2010 installed on your workstation. This can be Map3D, Civil 3D, Standard AutoCAD of the vanilla favor or even the water down application named TrueView. Now if you are running on a 64bit OS I was told you can skip the 2010 products but with a 32 bit OS you need one of those install.

Next download and install the 2010 version of the Raster Design OE. Located here http://usa.autodesk.com/getdoc/id=DL13023431. A reminder you need administrator rights to install it and follow the standards to install any of AutoCAD applications, in other words shut down any apps you have running and shut down you anti-virus software for the installs.

The next step is you need to open the windows registry. To do this the simple way is from the START button > Run and type in regedit for the “open”  then click the OK button. Now a disclaimer, if you don’t feel comfortable working with the registry then call some that does. Do not blame the Murph if your PC starts to act up later because you messed up the registry.

With the registry open navigate/browse to the

“HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R18.0\AdImaging” 

key. Select it, right click, and select Export. Save the exported registry key to a folder that you can get to, the name for it can be any name of your choice (provide you follow the naming convections enforced by Microsoft).

export_key

Now browse to the folder you saved the exported key to and open it in a text editor (Notepad works best). With the file open edit the first line (not the top header line) so it reads as 

[HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R18.1\AdImaging]

Just change the R18.0 to read R18.1. Save the file and close it.

regedit

Next step is to double click on the file in Windows Explorer. This will import the registry key into the registry.  If you get the Warning Message / Registry Editor

warning

just click the OK button.

Now if everything worked you should be able to open up Map3D or Civil 3D 2011 and use the Mapiinsert to insert a MrSID format image into you projects like you could before.

NOW A BIGGER DISCLAIMER(s):

First this is a hack to get the SID files in the 2011 versions, it is not supported by Autodesk so if something goes wrong don’t expect help from your support team. Second anyone that knows what all those numbers mean in the registry will see that the imported registry key is for the 2011 version but still points to 2010 Raster Design OE, if you try to install the supported version of Raster Design OE when it gets released you may get the message saying it is already installed. You may have to delete that key for the official supported version to install and work properly .

AutoCAD MAP 3D 2011

In case you have not heard, the newest version of AutoCAD MAP 3D has been released. By now all subscription members should have it available for download from their subscription site. For those that have not or have not had a chance to install and dig around with it I will show a few of new features.

The Grid and Graticules feature allows you to create a grid references system in paper space. It uses the Military Grid Reference System (MGRS) and updates as the model space changes.

Grid_Gran

You need to assign a coordinate system to your map before using it but once you create the grid you can edit the labels, they are plain mtext objects so if you need to use large text for certain labels you can.  The grid also works with map books to use it just create the grid in your map book layout template file.

Mapbook_Grid

Speaking of grids and coordinate systems the new version of Map 3D now allows you to track coordinates in multiple  coordinates systems. So your map can be in State Plane and you can see what a point or location is in Lat/Lon or any other coordinate system  to include the MGRS.

Track_Coord

For those that installed the Subscription Advantage Packs for 2010 you know about the LiDAR features. They in 2011 and work the same way as before. The only differences the commands are now on the insert tab of the ribbon. Once you create an index you can add the point cloud to create a surface or filter by classification.

The other thing that is new to AutoCAD MAP 3D are the FDO Providers for SQLite and POSTgreSQL databases. Both of those database are free open source and work great for the users wanting to get into data stores and spatial databases.

Now for power users of Map3D the Workflow Designer has more activities to add to your workflows. When it was introduced last year it had limited activities now there a good number to select from to include standard AutoCAD commands that means you can now use lisp routines as part of the workflows. If you can type the command on the command line then you can put it in your workflow.

WorkFlow

 

So that’s the new stuff in AutoCAD MAP 3D and you may of seen them already, BUT……… what about some standard AutoCAD core features. Things we can use in Map3D.  How often have you wanted to create some parcel maps and have an image under them. You always had to leave the polygons unhatched or use some dots hatch patterns then scale the dots up to appear as transparent or you used FDO. Now anymore, you now have a transparency control for layers and hatch. So if you want to work with standard AutoCAD polygons to theme on your data you now have the same features that FDO stylization does.

 

Parcel_example1

The Before Look

 

Pacel_Example

The After Look with 2011

You also have an option to set a background color to any hatch that is not solid. Now the one thing is the Map Polygon (mpolygon) fill options do not have the same properties or allow a background color. Maybe next year we will have that. Just beware the hatch interface is all on the ribbon now. You can open up the hatch dialog  by entering Ton the command line but once you get used to the new interface you may not want to waste the real estate for the big bulky dialog. Give it a few test runs and see how you like it. The other AutoCAD feature we now have is the select similar command. Now using that you need to type in the command “SELECTSIMILAR” unless someone else finds it on the ribbon or add the command to one of your existing ribbon panels.  

As time goes by I’ll blog a little more on each new feature but that’s the run down on the new 2011 version of AutoCAD MAP 3D.

Map3D and 64bit ODBC Connections

So with more users upgrading to 64 bit operating systems more are failing to connect to their access or excel files. Maybe you try to drag and drop a mdb file on the Map Explorer or tried to use a ODBC connection in the Data Connect. Did you get one of these messages to popup?

ConnectionFail

DataConnectFail   FailToConnect

Well the problem is Windows 64 bit does not have any ODBC drivers for Access or Excel files. If you look at the ODBC connection manager all we see are the drivers for SQL. 

Drivers64 

So what is a user to do? Well we can not throw out the new OS and reinstall a 32 bit OS, but we can do  something else. If you are on subscription you can still install and run AutoCAD Map3D 2009 which is a 32 bit application and will run on a 64 bit OS if you install the correct version that needs to be downloaded. Check with your reseller on getting the link to download or contact support on your subscription site. Once you installed the 2009 version on your 64 bit system you can now make an ODBC connection to our files. However you can not use the ODBC Connection Manager from the control center. You need to use the ODBC Connection Manger for 32 bit. Browse to the folder  C:\Windows\SysWOW64 and locate odbcad32.exe. This will allow you to set up your ODBC connection for a 32 bit application.

Drivers32

Now you can use your mdb and xls file again. Just remember you need to use AutoCAD Map 3D 2009. Obvious you do not want to use 2009 forever otherwise you would not have updated, so now may be time to start looking at copying your data to SQL databases. And before users start complaining that Autodesk is not taking care of it’s long time users and leaving them out in the rain, I can ensure you that Autodesk along with other software developers are on Microsoft’s case trying to get ODBC drivers for 64 bit OS.

What’s on Your Screen?

No! Not the screen door but on the AutoCAD Map 3D User’s interface. Guillermo Melantoni one of Autodesk’s employees involved in the next version of AutoCAD is wanting to know how users are setting up their workspaces, ribbons, toolbars and all that fun stuff. So if you are wanting a say in the next few versions of the software sent a screen capture of your UI to [email protected] with the subject line as MyUI. For more info you can read a post on his blog ”What a Mesh”.

AutoCAD Menus and stuff….

I got a few questions from users on how to make AutoCAD MAP 3D users interface look like standard AutoCAD. I normally just create a new workspace and set the menus and toolbars that I need or use the Map Classic workspace. But that may not work all the time for all the users as easy as it seems. So thankfully Michael Schlosser, an Autodesk employee came up with a easy way to load the AutoCAD menu in Map3D and blogged about it in his blog GeoExpressions he even links to a video on how to do it. So for the Map 3D user that needs to work as an AutoCAD user take look.

Custom Line Types with Data Connect

A number of users have been asking about using custom line types in their maps with features from the data connect, both in the AUGI forums and the Map3D Discussion Group. I would answer with a yes BUT replied. Why? Cause it’s not as simple as loading a lin file like you can with AutoCAD objects then set that object’s layer to use those line types from that lin file. So can it be done? YES. Here’s how in some simple as I can make steps. It takes a little preplanning but here is what I want to do in my example.

I have a SDF file (line type) that represents a 3 phase electrical power line, I want to display it with 3 vertical tic marks (perpendicular).

3Phase_Standard

The original display.

  • First enable enhanced stylization in Map3D.
  • Add your feature data (line type) using the enhanced stylization.
  • Save that data layer to a layer file.
  • Edit the layer file.
  • Then add that layer file back into your map.

So to start we need to edit the windows registry to enable the enhanced stylization. To do this edit the key in the registry named;

“KEY_CURRENT_USER\Software\Autodesk\AutoCAD\R18.0\ACAD-8002:409\Applications\AcMapDataConnectUI”  Note: the numbers may vary depending on the version of Map3D or Civil 3D you are using.

Set the value to 1 to enable it.

Next open up Map3D and make the connection to the SDF file, but instead of using the Add To Map or Add to Map With Query , we now have an additional  option “Add to Map with Enhanced Style”.

AddToMap

Add the SDF data with the Enhanced Style option. Notice if you try to style that SDF layer using the normal style editor you will see that everything is grayed out and you can not change how it is displayed, add a scale range or create labels . As of right now there is no graphic users interface (GUI) to edit it.

Next step is to save the SDF layer out to a layer file. Right click on the layer in the display manger and select Save Layer.

SaveLayer

Save the layer to a location you can get to easily for now while you are experimenting with this and give it a new name.

SaveLayerAs

  Now remove the SDF layer from the Map display and disconnect from the SDF data file.

Next we start to edit the layer file we just saved, the layer file is in xml format and we can open and edit it with Windows Notepad. I suggest users stay away from some of the XML editors out there and edit with Notepad. With the layer file open scroll down to the line:

<Geometry> M 0.0, 0.0 h 4.0 </Geometry>

Layer 

This is where we start editing the file. The geometry tag is telling Map3D how to display or draw the line for this data feature. It starts at 0,0 and draws a straight line 4 units horizontal. The syntax is a little different than what you use in creating a line definition for a lin file, but the same principal. The “m” stands for move to  0.0,0.0. It is the coordinate to start drawing the line at. The next part is “h” for a horizontal line then the 4.0 is for 4 units. That is all, a simple straight horizontal line 4 units long. What I want is a line with 3 vertical lines in the center of it.  First I change the 4.0 to 10.0 to make my line longer so the vertical lines are not too close to the end points.  Next I use the “m” to move to a new starting place of 4.5, -0.5, or 4.5 units to the right of the starting point of the line and 0.5 units under the line. Now I tell it to go vertical one unit up by using “v” 1.0. That draws the first vertical line one half of  a unit left from the center of the horizontal line up one unit. Next I use M 5.0, –0.5 V 1.0 for the second line and for the last line M 5.5, -0.5 V 1.0.

Edits 

If you notice my screen capture of the edited file I formatted it to make it easier to read and edit, that’s what I like about Notepad other xml editors may give you errors when you try it this way.

Now there’s one other edit we need to make to get this new line to look right, I changed the length of the first horizontal line from 4 units to 10 units. So I need to change how often the line repeats though out the line segments in Map3D. Scroll down to the <Repeat> 4.0 </Repeat> tag and change the 4.0 to 10.0. I also changed the color to a red tint, the color tags <Linecolor>xxxxxxxx</Linecolor> uses a HEX value so if you need to change the color you need to know the HEX color values.

Edits_2

There is my editted layer file, now save the file and drop and drag onto the display manager or load it into Map3D with the load layer command. The results look like this:

OurStyle

The edited display.

So there you have it, custom line types for a data connect line feature. But don’t leave yet there’s more to follow in the next few weeks, not only can we create lines types like above we can create custom point markers or use a point marker in a line definition or create flow arrows in your lines and how about depression marks for contour lines?  More to come and if you try this you may notice your lines features may need some more editing to get them just right.

Another Book on AutoCAD Map 3D

For all those users out there that have been wanting a good book to learn AutoCAD Map 3D you now have another choice. Up until a few months ago you either had the choice of using the Autodesk Official Training Courseware (AOTC) from Autodesk or Digging Into AutoCAD Map3D from Cadapult Software Solutions, Inc. Well now there is a new guy on the block, Well to be honest he is not new, but has been on the block since the beginning of AutoCAD Map. After getting a copy and looking it over and doing the lessons/exercises in it I recommend it for those that want to learn AutoCAD Map 3D. The book is titled “AutoCAD Map 3D 2010 A Practical Guide”, by DigitalNode. A few things about the book, first the author, Alex Penney, is a former Autodesk employee that was on the Map3D product team from the early days of AutoCAD Map and was responsible for developing the training strategies for AutoCAD MAP3D. I have known Alex from the News Groups for years and met him face to face a few years back at a AUGI CAD Camp that we both were presenting at. So take my word when I say Alex knows Map3D. Now to the book review, it includes a data set for the exercises and the exercises are written so you can start at the beginning or start at any place in the book if you know the basic. It’s not required to do chapter 1 before doing chapter 2. However it does build off previous exercises or starts with the basics and goes all the way to the data connect and back.  What I mean is you can read over the table of contents and when you see a chapter you want to learn  you can turn to that chapter and go on you way with doing the exercises and learn. The book also covers the FDO or data connect side of Map3D which is the first single book that covers both the old map features and the new FDO data connect for one price. The book covers most everything the AutoCAD Map 3D user will need to know to be proficient with Map 3D or Civil 3D user that want to learn the Map 3D commands.

To those that know me, know I’m a fair and honest person when it comes to critiquing anything. The down side to the book, or at least the copy I was given is the the images used in the book. They are screen captures of the dialogs, palettes, and other pieces from AutoCAD Map 3D, they are all in black and white and a little fuzzy.  Now I will write that off as a way that Alex was saving money to keep the cost down, anyone that took a color image to a printer knows it may double the price of getting copies made if you want high resolution color output. The images don’t make the book, it’s the contents so I can live with the images.   Over all I give it a thumbs up and may even use it in the next Map3D class I teach.

Do you leave your car running all day long?

You do not drive into work every morning, park your car (SUV, truck or Harley) in the parking lot running all day long knowing you may want to drive it to lunch or when it comes quitting time back home. You don’t think that if you leave it running  it saves you a few seconds of having to start it up again and warm up before you put it in drive to drive off do you? OK so it would be nice this time of the year to go out and get in a nice  warm vehicle when we head home for the day. Or for those in the southern hemisphere  a nice air conditioned vehicle this time of the year. No, we do not do that or think about doing that because we know the risk involved of not only wasting fuel and adding to  global warming but we also know we may not have a car sitting there waiting for us when we come out to drive off.

So why would would you do that with your AutoCAD software? I’m talking about users that come in to work and start up their computers start AutoCAD thinking they may need to open a drawing some time during the day. Sure the first time you start up AutoCAD it takes a few minutes to load and you have to wait especially if you do not have an optimized workstation.  But, do you know it is wasting resources sitting there minimized to the taskbar while it is not being used? Just like leaving your car idleing all day long it’s is not only using fuel but the power steering pump is keeping the fluid pressure build up, the oxygen sensors are still sending readings to the on board computer, the fuel gauge, oil pressure gauge are still using resources, the tachometer is still reading the RPMs of the engine. All that and more is happening because you do not want to wait for your vehicle to warm up at quitting time. Sounds a little dumb doesn’t it? Well the same thing is happening to your computer when you have AutoCAD running and minimized. All the functions inside AutoCAD are sitting there running, the operating system is sitting there listening for a mouse click wondering if your are wanting to issue a line command in AutoCAD or read some email. All those support folders on the server are getting pinged making sure they are still connected, all those connections to the printers are still connected, and more.

So what does all this mean? It means when you do get ready to open a dwg file in AutoCAD that it (AutoCAD) already has taken up a lot of those resources and you may get those Fatal Errors or out of memory errors. Prior versions of AutoCAD are know to have memory leaks or hoard memory that it is not using causing errors or other issues when you do try to use the program. The fix for it short of upgrading to a more powerful workstation is do not open AutoCAD until you need to use it, if you have been running AutoCAD for a few hours then close it out and reopen it after a few minutes, give it time to release some of those resources. A few minutes of waiting for AutoCAD to open is better than a few hours of complaining to your IT, boss or your software support team.

Subscription Advantage Packs

If you are a subscription member there a new extension you can download. The subscription extensions now called Subscription Advantage Packs (SAP) are available on the subscription site.  The SAP for AutoCAD Map3D 2010 contains tools to use LIDAR or point clouds data. If anyone ever wanted to use large LIDAR files or point clouds you now can with the SAP. So what can you do with this data? Well depending on the data a lot.  First here is how you can start using it.

First on the Display Manager, click on the Tools Icon, select Create Point Cloud Index. The “Index” needs to be created for all new LiDAR (las) files.

 CreateIndex

When you select to create the point cloud index the Point Cloud Manager palette opens. Here is where you browse to the LiDAR files and add them to a list or you can even group multiple files together.

PointCloud Manager

Once the files are listed in the Point Group Manager highlight the file or group and click on the Generate Index. This creates a file with an ISD extension. You have the option prior to generating the index as to the file location and name by selecting in the output column and browsing to a folder and renaming the file. The default is the same folder and file name as the las file. Generating the index takes a few minutes depending on the file size and number of points in the file. A process indicator is displayed in the the  Point Cloud Manager as it is generated.  Once the index is created you can click the Add to Map button to add the point cloud to your map.  Note you only need to create the index for the las file once, you can use the isd file to load the point cloud in any drawing. Once you created an index of a las file you can reload the point cloud by using the Data icon and selecting Add Point Cloud Date.

AddPointCloud

Once the point cloud is loaded into the map it is listed as a map layer in the Display Manager.

Display

Once you have a point cloud loaded you can highlight it and the context sensitive tab on the ribbon will display for the point cloud.

RibbonTab_PointCloud 

The ribbon tab allows you control how the point cloud is display along with a few other tools to work with the point cloud. The Point Display control will allow you to control the number of points (density) displayed. Move the slider to increase/decease the amount of points. The Filter Point Cloud control allows you to filter the point cloud based on the data assigned to the points or by spatial (location on your map). Note: Not all LiDAR files will have data assigned to it. The Style panel of the tab will allow you to set the style of the point cloud based on the classification, elevation, Intensity or RGB assigned to the points. The create panel will allow you to create a surface from the point cloud. You have two formats for the surface file, GeoTiff or ESRI ASC. The Export panel will allow you to export the point cloud to SDF format to be used later in the map or as an ASCII (text) format or even to a LAS format. Exporting it to ASCII will only export the XYZ of the points it will not export any other data and exporting to SDF will create a LARGE SDF file, so beware.

Along with the advantage pack there is some sample files (las) and tutorials on the subscription site that you can also download that provides some assistance on using the new feature.

The AutoCAD Subscription Advantage Pack

There is also an Subscription Advantage Pack for standard AutoCAD as well that can also be ran with Map3D. This advantage pack contains some useful tools for standard AutoCAD objects that for once the Map3D product team has not forgotten about the AutoCAD Map3D users that still use Map3D as AutoCAD or that we still use drawing objects in our maps.

Once installed it adds a new ribbon tab to the ribbon labeled Subscription.

AutoCAD_SubRibbon

The first panel of the tab allows you to isolate objects and unisolate them. The next panel will allow you to select an object then create another object of the same type. The Select panel has the much needed and wished for Select Similar command. It does have a settings options allow you to filter the selection.

SelectSimilar

The last panel contains the Draw Order tools for setting the draw order for annotations and hatches. Keep in mind these are the standard AutoCAD objects, they do not work with Map3D annotations or the feature labels and hatches. Oh yes, if you are an old school user and have not embraced the ribbon interface yet, there is a toolbar for these as well, the AutoCAD SAP for the AutoCAD Map3D SAP you need to create your own toolbar or use the ribbon. 

Points to Blocks

With the survey tab of the map task pane we can bring points into a map and style them with our blocks to get the look that we may need, or when we import a point type shape file or any other format we can assign a block to the points on the import. (provide block name matches the attributes) But what if you have existing drawings that you have been using for the past few years that have AutoCAD points or they are standard AutoCAD drawing, or from some one else. ? What is the easy and quick way to insert blocks at those points? Well if those points are on there respective layers the Display Manger maybe the quick and easy way. Here is how.

Looking at my sample waterline map we have points that represent wells, both active and abandoned that reside on their own layers. 

points

First we start by creating a few new “Map Layers” in the display manager. To do this switch to the Display Manager tab, and select ” Add Drawing Data > Drawing Layer”. 

AddDWGLayer

Select one of drawing layers the points reside.

Layer1

Then click OK, we want to create the map layers separately so when we assign a block to the points we can control what blocks goes to what points. repeat to create all the new map layers as needed.

 

mapLayers

Once we have the map layers created we style them with a symbol by right clicking on the map layer and select “Add Style > Symbol”.

AddStyle

The symbol used is a default symbol of a square with and X inside it. To change it to the block we want we select the “Symbol Style” element in the display manager under the map layer and select properties.

StyleProperties

In the property palette for that element we chose the block to use for that map layer.

SetBlock

You can also set the scale of the block to your scale, leaving the scale at the default of (* 20 (VIEWSCALE)) will scale the block 20 times the view scale. The default scale will scale the block up/down as you zoom in and out of the drawing and regenerate. Change the name of the element to represent the blocks. Repeat the steps for the remaining map layers.

To go a another step further in the display manager we can change the symbol shown in the display manger and for a legend if you decide to create one later on.   Do this by selecting the map layer in the display manager and go to it’s properties in the property palette.

setSymbol_legend

 

In the property palette, change the Thumbnail Preview to Block and select your block.

Thumbnail LegendBlocks

Repeat for your remaining map layer.

Now your points display as your blocks.

blocks

If you need to share the map to standard AutoCAD users you can use the tool icon and Save Current Map to DWG.


Archives

Readers Locations

Top Rated posts

Chat room


Design a site like this with WordPress.com
Get started