CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Czech English Deutsch
Login/Register:
 Visitors: 2808 
RSS tips RSS channel - CAD tips
RSS discussion RSS channel - CAD discussion

Discussion Discussion forum

HelpCAD discussion

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

The information that you provide in this form will make up your forum profile which can be viewed by other forum members. Your email address will only be visible by forum admin and moderators and will be used to send you Forum Notifications. To cancel your account, use the page Opt-out or contact webmaster@cadforum.cz.

AutoCad C3D - Trying to Automate MAPEXPORT to incl

 Post Reply Post Reply
Author
lmorse View Drop Down
Newbie
Newbie


Joined: 04.Dec.2018
Location: Australia
Using: AutoCad Civil 3D
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote lmorse Quote  Post ReplyReply Direct Link To This Post Topic: AutoCad C3D - Trying to Automate MAPEXPORT to incl
    Posted: 25.Jan.2021 at 05:34

Hi,

I have 3 drawings, each with 50+ layers. The client wants me to export each individual layer as an individual SHP file, and needs me to run the export every couple of months. I can write up a script file specifying each layer etc, the catch is that I also need to export the Attribute Data from the attached data tables for each item. I cannot seem to get a hook into the Attribute Data using the MAPEXPORT command in a script, e,g:


-mapexport" "SHP" "c:\\Temp\\MyLayer1.shp" "Y" "c:\\Temp\\Street.epf" "S" "L" "All" "MYLAYER1" "*" "No" "Proceed"

-mapexport" "SHP" "c:\\Temp\\MyLayer2.shp" "Y" "c:\\Temp\\Street.epf" "S" "L" "All" "MYLAYER2" "*" "No" "Proceed"

This will export my layers, but minus the Attribute Data from the attribute table.


Does anyone have experience in doing this kind of export to SHP? Is it possible to script, or code so that the shapefile contains the Attribute Data?


I tried something along the lines of:


-mapexport" "SHP" "c:\\Temp\\MyLayer2.shp" "Y" "c:\\Temp\\Street.epf" "S" "L" "All" "MYLAYER2" "*" "No" "D" "MyDataTable" "Proceed"

But this was just a stab in the dark, I cannot find any documentation outlining the datatable in the command line use of MAPEXPORT.


Note: I can export the shapefile manually and select the data table and it exports as I need it to (by selecting the Data tab in the export dialogue).


I have very limited knowledge of Lisp.


I hope I have explained my issue well enough. Thanks for any help.

Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,047 seconds.