I have 10 sets of blocks throughout my drawing which don't seem to have any attribute information.
I want to extract the HANDLE, LAYER, X ,Y, Z information from their properties panel however - whether that be as a shapefile or text file.
However, I can't seem to find how to do so. I tried this tutorial https://mgfx.co.za/blog/building-architectural-design/how-to-add-attributes-to-an-autocad-2020-block... but it just produced an .xls file which said DELETEME
Solved! Go to Solution.
Solved by ChicagoLooper. Go to Solution.
Hi @aokeefe01,
"...it just produced an .xls file which said DELETEME"
A .xls file can be opened in Excel. You can also output data to other formats, like .csv or .txt.
Dave
Dave Stoll
Las Vegas, Nevada
Hello @aokeefe01 From your original post.
<<...I want to extract the HANDLE, LAYER, X ,Y, Z information from their properties panel...>
You can do it using MAPEXPORT command. Name and save your exported shapefile to your project folder (or a subfolder). Here are the instructions to save LAYER, X, Y and Z from the Properties Palette.
1. On the Selection Tab, your feature class for your blocks will be 'Point.' (Blocks are always considered as POINTS.) Then you may choose your own selection method. In this example, I choose 'Select Manually.'
2. On the Data Tab you'll select the attributes you mentioned in your opening post. Click 'Select Attributes.'
3. Expand Properties so you can capture the information from the Properties Palette.
4. Check 'LAYER' then scroll down.
5. You'll also need to check X1, Y1 and Z1 to get coordinates.
6.The captured data will appear as the Output Field. The output field is the data that will populate the shapefile's database file or dbf. Click OK to execute the MAPEXPORT procedure. You may skip the Options Tab.
***WARNING: If you are exporting POLYGONS, go to the Options Tab and check the box named Treat closed polylines as polygons THEN you may click OK to execute MapExport command.***
7. When you add the shapefile to to your drawing, it will appear in modelspace and be listed on the Map Task Pane. The shapefile's Table View will display the Database, the attributes, (Layer, X1, Y1, Z1) because you capture that data from the Properties Palette during your MAPEXPORT procedure.
You customize or apply STYLE to change the appearance of your shapefile POINTS after you've added them to your drawing. You may modify the symbol itself, line color, linetype, fill color, size, rotation, etc. You may make the symbol as simple or as elaborate as you wish.
While in Table View, you may go to the bottom of the table then Options=>Select All (the rows will highlight as blue)=>Options again=>Export...=>Name and save your Export in csv format. You may open this csv file using Excel.
Chicagolooper
Can't find what you're looking for? Ask the community or share your knowledge.