I would have another two questions about shp import.
I have two shp point files wich i want to import in the same dwg as blocks. Both shp file has the same OD called "Type". Both shp files have two value for these "1" and "2". I want to assign different blocks for all four variations. But since they are called the same, i cant have blocks with the same name.
Is there any way to make autocad differentiate the 2 shp files?
The other question is is there any way to annotate the drawing like this: If the OD is "1" then the notation text shouldnt be "1" but for example "concrete".
Solved! Go to Solution.
Solved by ChicagoLooper. Go to Solution.
Solved by braudpat. Go to Solution.
Hello
With the MAPIMPORT command for Points objects (XY or XYZ), you can get classic AutoCAD Blocks (instead of Points) coming from an attribute of the .DBF ...
Of course the blocks with corresponding attributes must already exist into your DWG !
( If your select the right option : see the blue on my Image ! )
If you have 2 different SHP Points files with 2 values : 1 & 2
You must proceed one by one
Assuming you have 2 blocks names : 1 & 2
1 - MAPIMPORT for the first SHP ...
Then rename the 2 blocks after the first MAPIMPORT : 1 to SHP11 , 2 to SHP12
Re-Insert the original Blocks : 1 & 2
2 - MAPIMPORT the second SHP ...
Then rename the 2 blocks after the second MAPIMPORT : 1 to SHP21 , 2 to SHP22
So NOW you have 4 blocks into your DWG : SHP11 , SHP12 , SHP21 , SHP22
If I understand well your problem !?
For your second question : NO ! ... You can't substitue attribute value during MAPIMPORT
But with the 1 & 2 values into classic attributes, you can easily do a search and replace on all the 4 Blocks !
THE HEALTH (Stay Safe, Stay Home, Stay Live), Happy New Year, Bye, Patrice (The Retired Old French EE Froggy)
Patrice BRAUD
Yes. You can use MAPIMPORT command Shapefile_1. You can repeat the MAPIMPORT command again on Shapefile_2.
Do this:
To annotate the the blocks, you may do this:
Chicagolooper
Can't find what you're looking for? Ask the community or share your knowledge.