Hi @timothy.birdwell
OK. We're making progress but we still haven't reached our destination. Because you haven't shared your actual dwg file, I'll have to guess regarding the nature of your drawing and how it behaves. Here's more info that may or may not be compatible with your specific drawing. The instruction below is pure guesswork. <<Before beginning this workflow, go to command line and enter UNITS=>change the Precision to 6 decimal places (click the dropdown arrow to change it). The default is only 4 decimals. You may change it back to 4 after this exercise.>>
Run DATAEXTRACTION command. Go to Annotation tab=>Tables panel=>DataExtraction icon. This command makes you run through an 8-page 'Wizard.' The numbers below correspond to each page of the wizard.
- Name and save a brand new .dxe file. This file is used by AutoCAD to extract compile the data in your dwg file. For organization purposes, create a subfolder named Dataextraction and save the new dxe in there.
- Select the radio button named Select objects=>click the square button on the right of the radio button=>select all your red mtext. <<It helps if you isolate the layer hosting all the red mtext . You only want to select your red mtext. If you select other objects besides the red mtext, then you'll have extra data that you won't need b/c you only need to extract data for the red mtext and not for other objects that you have no use for.>>
- Check only the box for mtext. If you see other boxes that are checked, uncheck them.
- For Category File on the right, check only the boxes named (1) geometry and (2) text. For the Properties Section on the left, check only the boxes named (1) contents, (2) Position X and (3) Position Y. You don't need to check any other boxes in the Properties section.
- Based on your parameters you established on pages 1 thru 4, a sample of your extracted data is shown here on page 5. FYI, the Contents column will be deleted later, but for now, keep the Contents column. Under the sample view, in lower left, select only Combine Identical Rows. Deselect or uncheck (1) count and (2) show name, you don't need those options. Still on page 5, click 'Full Preview' button. This is a preview of your extracted data. Click on the 'Y' in the column named Position Y. The values will sort from lowest to highest. The values will toggle from ascending to descending with each click. You will want to sort the Y-values so highest value is in top row and lowest value is at bottom. Click the 'X' in upper right corner to exit this preview.
- You have two options to save your extracted data: (a) save it internally as an AutoCAD table which you insert directly to your drawing or (b) as an external file. Choose the output that's an external file. Save is to .xls format. <<Sorry, but there's no option for .xlsx.>>
- There won't be a Page 7. The page is skipped because you're saving to external file. If you choose to insert a Table directly (internally) in your dwg file, then page 7 would establish the format for that table.
- Click Finish button.
Open the new xls file. The Y-values should be in descending order or highest Y at top and descending to the lowest Y at the bottom, if it's not, you'll need to use an Excel command to sort it properly. Back in you dwg file, you can eyeball the red mtext objects to determine the order which you will select them. You want to select each mtext individually beginning with the mtext that's closest to the top of your monitor, the highest Y-value. <<Disregard each mtext's X-value, focus only on the Y.>> You'll want to copy an individual piece of mtext then paste it to a NEW spreadsheet (refer to earlier post) in cell A1. Back in you dwg, select the next highest Y-value of mtext or the 'second' closest to the top of your monitor then copy and paste it to cell B1. Then the 3rd highest Y is copied and pasted to cell C1. Continue for all of your red mtext objects. Once all the red mtext has been pasted, perform the PIVOT operation that was described in a previous post. After the Pivot, insert two 'blank' columns on the extreme left. Once inserted, they'll be named column A and column B and both will be empty.
Next, go to your DataExtraction file and copy the coordinates, or the values in the columns named Postion X and Position Y, and paste them (insert) them into the 'blank' columns you created in the previous paragraph. Name and save this xls file and give it to a member of your GIS team, preferably the team member you go out to lunch with. Tell him/her you want a shapefile (POINT feature class) using the spreadsheet. Any capable GIS'er will be able to create your shapefile while standing on their head with one hand tied behind their back.
When the shapefile is delivered to you, save it in a brand-new subfolder named 'Project Shapefile' within your project folder. At the absolute bare minimum, this means barest-of-all-bares-known-to-every-two-legged-upright-walking-creature, you'll have three components: (1) shp, (2) dbf and (3) shx. Make sure you save all components in the same Windows folder. If you had a Geospatial Projection in your original dwg file, you'll have a fourth file named prj and it must be saved in the folder named Project Shapefile.
Drag-and-drop the shp: DRAG the .shp from its Windows folder and DROP it directly onto modelspace. <<Perform the drag and drop s-l-o-w-l-y. AutoCAD is processing the shapefile in his brain while you're dragging and you don't want to rush him.>>
Hopefully this shapefile will work. Remember, all of this is pure guesswork. If it really does work, then your shapefile is good. And if it's good, then you can turn off, or disconnect from, the shapefile and use MAPIMPORT command. <<BTW, if this doesn't work, then Plan B is to use Overlay Analysis, an operation within Map3D. Overlay analysis is yet another way to associate your the red mtext data with a specific object.>>
When the MapImport command is properly used on a 'good' shapefile, it's capable of doing 2 things: (1) placing the points of your shapefile in their correct location and (2) CREATING Object Data which is data you harvest from the shapefile's database file (dbf). The Object Data associated with a point can be viewed by selecting an individual point then scrolling to the bottom of the Properties Palette. <<The process of creating Object Data is not covered in this post. Neither is the process of using an AutoCAD block instead of using and AutoCAD 'point' to represent each individual location.>>
Chicagolooper
