Hi,
I've imported SHP file features into a map I've created. I've changed the appearance from points to rectangles to represent trailer positions. I need to be able to rotate the rectangles by each point but the function is locked. I'm unable to move, rotate, or manipulate the objects in any way. Is there a way to unlock these features so they can be edited?
Solved! Go to Solution.
Solved by parkr4st. Go to Solution.
Solved by parkr4st. Go to Solution.
Dave P,
I'm waaaaay dumber than Arizona dirt, and you and Dmayjr are miles ahead of me in Map skills.
Here's problem #1. When I open Dmayjr's 4SightTest.dwg drawing, I open MAPCONNECT, AutoCAD hangs, and I have to CTRL/Alt/Delete out of there.
OK, so then I open a new drawing, MAPCSASSIGN "LL", MAPCONNECT Dmayjr's 4sightmap.sdf and Dock.shp and Parking.shp (no PRJ, so LL?)
Next, prepare to make a block by drawing a 9 x 53 rectangle. It's so huge it dwarfs the building and point features. LL ain't going to cut it. I'm now into this about 2 hours. Just not able to sort things out. It would be nice to learn about the database and rotation stuff from this thread, and I'm sure there's gold here, but I know when to admit defeat. This is one of those times. Thanks anyway, Dave, for trying.
Dave S
Dave Stoll
Las Vegas, Nevada
This was killing me. I HATE it when I can't figure something out. I gnaw my knuckles in the still watches of the night over stuff like this. So here's MY solution. Go get the free DBF Commander here:
http://elphsoft.com/download.html
In DBF Commander I opened Parking.dbf. and changed one of the headings, MAX_PDOP, to "Rotation". Under Rotation in the Feature Style I selected "Expression" and chose the Rotation "Property". Seems to work.
I still don't have a clue how to add new fields using ADEDEFDATA.
Dave
Dave Stoll
Las Vegas, Nevada
Hey Dave. You can add the rotation feature in ADEDEFDATA by selecting the SHP file you want to change. Once you do, all the existing features should appear. In the lower left is the "modify" button. Select that and you can add new features and select if they're integer, real, etc. click add and your new feature is added. Follow the other steps Dave P listed above for exporting and changing style for your imported SHP file and your set. Hope that helps. Took me a while to get it too.
Dmayjr,
Can you show me some steps with screen shots? This is all I get:
Dave
Dave Stoll
Las Vegas, Nevada
Dave P,
Is there another ADEDEFDATA command somewhere in Map 3D, because mine does NOT work. I have no idea what this "4sightmap" refers to. With 4 features shouldn't I have 4 tables?
Dave S
Dave Stoll
Las Vegas, Nevada
Dave
in the top of screen capture, you show Display Manager with the SDF file 4sightmap? and below the Define Object Data box? Ok?
SDF files have one table for all data type, points, polygons, and line. shp can have only one of those data types point, polygons, or lines. other data connection file types have similar differences.
ADEDEFDATA applies only to dwg objects, not data connected objects and there is only one command for ADEDEFDATA AFAIK.
With the SDF file type, use edit schema from the Display Manager Map Explorer tab to modify the data table.
With the shp file type, editing the schema results in the error "Apply schema on a single shp is not allowed" This is a problem inernal to Map3D AFAIK. I commonly use ArcMap to modify shp because it works. Qgis will also do that easily AFAIK. Another AD fault??:(
Therefor to add the field to the shp, use mapimport with attached data, ADEDEFDATA to modify the object data, and Mapexport with the OD to write a new shp file with the modifications.
As far as the OP of this thread, the original sdf data file posted was close to useless as it did not have any data fields in the table.
The op was gracious enough to post the zip file with the shp files which contained all the data tables. Simple modification of the shp through mapimport, adedefdata, and mapexport gave a working shp with the rotation field needed to style the shp data as the op requested help with.
I did place the data to the Dallas, TX area. Looking quickly on line, the two sites I posted contain all the data to do this project, aerial photos, building shp, Dallas street shp, and property lines are also available in a large file with a lengthy download time.
Using that public domain data, a base map for the project can be built in ten minutes or less.
That means adding the parking data to finish the map. At that point I would have drawn the parking spaces with cad dwg lines or polygons rotated to where I wanted them and added any data with ADEDEFDATA. if the parking spaces are the same size and in groups, draw a polygon the size of one space, ARRAYREC and build a simple array of say 4 spaces. copy with base point and paste where ever that size space is needed, and rotate to the proper direction which is easy because you can see the parking spaces on the photo, dargging the array number of items arrow would quickly add or subract spaces. qselect all the parking spaces when you're done, explode the arrays once for polygons, twice for lines, and mapexport to sdf or shp, That way one does not have to even bother to type in the rotation value and can simply style the data in the map.
Be patient Dave S, you know all this stuff, just work it through and post your questions.
dmayjr. thanks for the interesting problem. Glad to help you.
Dave P
Dave P,
"ADEDEFDATA applies only to dwg objects, not data connected objects..."
OK, subtle distinction. Flies against all reason, but OK.
"Qgis will also do that easily AFAIK."
Things are not good when a free, open-source program like QGIS kicks a pricey Autodesk product up one side of the street and down the other.
"Therefor to add the field to the shp, use mapimport with attached data, ADEDEFDATA to modify the object data, and Mapexport with the OD to write a new shp file with the modifications."
Well, why didn't you just say so? That's EASY!
Dave S
Dave Stoll
Las Vegas, Nevada
Dmayjr,
You can mark more than one post as a "Solution". Please mark Dave P's Post #27 as a Solution. It's cut-to-the-chase gold.
And thank you for posting. I learned tons from your thread.
Dave S
Dave Stoll
Las Vegas, Nevada
Can't find what you're looking for? Ask the community or share your knowledge.