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

Exporter setting for Line-polyline 2012 .net

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
569 Views, 2 Replies

Exporter setting for Line-polyline 2012 .net

I am trying to use the Map Exporter class in vb.net.  i can get it to export Points, but where do you change the setting to Line, or text or anything else.  I have run through the documentaiton but unable to find anything.  This is what i have.

 

Dim mapSession AsMapApplication = HostMapApplicationServices.Application

Dim exporter AsExporter = mapSession.Exporter

exporter.Init("SHP", filename)

 

Dim dataMapping AsExpressionTargetCollection = Nothing

dataMapping = exporter.GetExportDataMappings()

'Set Object Data data mapping if table is true

If isTable AndNot MapODData(dataMapping) Then

log.WriteLine("Error in mapping OD table data!")

EndIf

 

exporter.LayerFilter = layerFilter

 

Dim results AsExportResults

results = exporter.Export(True)

 

Can anyone help please

 

 

 

2 REPLIES 2
Message 2 of 3
Alfred.NESWADBA
in reply to: Anonymous

Hi,

 

look behind this:

Dim tExpGeomType As Map.ImportExport.GeometryType
Select Case GeomType
  Case "POINT" : tExpGeomType = Map.ImportExport.GeometryType.Point
  Case "ARC" : tExpGeomType = Map.ImportExport.GeometryType.Line
  Case "POLYGON" : tExpGeomType = Map.ImportExport.GeometryType.Polygon : tExporter.ClosedPolylinesAsPolygons = True
  Case Else : tExpGeomType = Map.ImportExport.GeometryType.Point
End Select

exporter.SetStorageOptions(Map.ImportExport.StorageType.FileOneEntityType, tExpGeomType, "AA")

 HTH, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 3
Anonymous
in reply to: Alfred.NESWADBA

Thank you.  That is what i was looking for.  do you know how to exclude layers using the layerfilters?  I want select all layers except for a few of them.  Like a NOT feature.

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

Post to forums  

Autodesk Design & Make Report

”Boost