Jump to content

-mapexport losing my selection "0 object(s) of 0 selected, exported in 0 sec(s)


pwned555

Recommended Posts

Hi, when I select some polygons and try to use -mapexport from the command line manually and programmatically it gives me "0 object(s) of 0 selected, exported in 0 sec(s).".

 

This is what I try to run programmatically (and the same thing from the command line)

 

docum.SendCommand("-mapexport" + vbCr + "shp" + vbCr + inFile + vbCr)

       If isOverW Then
           docum.SendCommand("O" + vbCr)
       End If
       docum.SendCommand("Y" + vbCr + "X:\Legends\Test.epf"+ ".epf" + vbCr + "S" + vbCr)
       docum.SendCommand("P" + vbCr + "M" + vbCr + "last" + vbCr + vbCr + "*" + vbCr + "*" + vbCr + "N" + vbCr)
       docum.SendCommand("P" + vbCr)

It is not an issue with my profile because I can use it with Map->Tools->Export->Shape. It seems like when I try to run the command the selections are lost and I'm not sure why.

 

I also get a problem when I try to select polygons and then go to Map->Tools->Export->Shape where they are lost there as well. However, if I select them again, import the same profile I am trying to use above and run it, it exports to a shape file correctly.

 

I have AutoCAD Map3D 2011 set to allow selections before command and it works for other commands

 

Any help would be appreciated, thanks.

Link to comment
Share on other sites

  • 2 weeks later...


docum.SendCommand("Y" + vbCr + "X:\Legends\Test[color=red].epf"+ ".epf"[/color] + vbCr + "S" + 
vbCr)

 

Fix this and try.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...