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: 

mapexport in vba

1 REPLY 1
Reply
Message 1 of 2
Anonymous
361 Views, 1 Reply

mapexport in vba

Is it possible to use mapexport (or something else to export to shape) in
VBA

thanks


Peter
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

(the hard way) You can use "ThisDrawing.SendCommand" and reconstruct the
command line "-mapexport" string in VBA. (I'm hoping there is an easier way.
make sure the AcadMap reference library is loaded)

example:
'(setvar "cmdecho" 0)
ThisDrawing.SendCommand "_setvar" & vbCr & "cmdecho" & vbCr & "0" & vbCr
or
ThisDrawing.SendCommand "(setvar" & " " & Chr(34) & "cmdecho" & Chr(34) & "
" & "0)" & vbCr


Eric Smallwood

"Peter Cleeren" wrote in message
news:39442C1F356C9501C72326D5F8553573@in.WebX.maYIadrTaRb...
> Is it possible to use mapexport (or something else to export to shape) in
> VBA
>
> thanks
>
>
> Peter
>
>

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

Post to forums  

Autodesk Design & Make Report

”Boost