AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SHP import and notation questions

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
726 Views, 3 Replies

SHP import and notation questions

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".

 

 

 

 

Labels (1)
3 REPLIES 3
Message 2 of 4
braudpat
in reply to: Anonymous

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 ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 3 of 4
Anonymous
in reply to: Anonymous

Thank you!

Message 4 of 4
ChicagoLooper
in reply to: Anonymous

Yes. You can use MAPIMPORT command Shapefile_1. You can repeat the MAPIMPORT command again on Shapefile_2.

 

Do this:

  1. MAPIMPORT command=>Import Shapefile_1=>Click DRAWING LAYER cell=>Select Use data filed for layer name option=>Select TYPE from dropdown menu=>OK to exit=>OK to execute the MapImport command. See Image-1. (Note: All Blocks will be segregated by the 'value' contained in TYPE. This means Type1 will be on its own Layer and Type2 will be on its own Layer. In the Properties Palette you may give each layer a different color.) 
  2. To use your own BLOCK instead of a default Acad 'Point,' click the ellipsis in the POINTS column=>Create as Blocks=>Click dropdown menu=>Select your block. (Note: your block must be an existing block in the dwg file. If it is not an existing block, need to CUT the block from another drawing then PASTE it into current drawing. Perform the paste operation before executing the MAPIMPORT command.)  See Image-2.
  3. Repeat steps 1 and 2 for Shapefile_2. You may use a different block or the same block, your choice. 

 

Image-1.Image-1.

 

Image-2.Image-2.

 

 

To annotate the the blocks, you may do this:

  1. To ISOLATE all 'Type1 blocks' select a single Type1 block on Layer1 and the same Type1 block on Layer2=>Right click=>Select similar=>Isolate Objects=>Isolate Selected Objects. 
  2. Use a crossing window to select ALL the non-frozen Type1 Blocks=>go to Properties Palette and scroll down to MISC section=>Enter 'Concrete' as the attribute.
  3. Right click in modelspace=>Isolate objects=>End Isolation.

Chicagolooper

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report