+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Forum Newbie
    Using
    Map 3D 2011
    Join Date
    Dec 2011
    Posts
    9

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

    Registered forum members do not see this ad.

    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)

    Code:
    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.

  2. #2
    Senior Member
    Using
    AutoCAD 2006
    Join Date
    Aug 2009
    Posts
    109

    Default

    Registered forum members do not see this ad.

    Code:
    docum.SendCommand("Y" + vbCr + "X:\Legends\Test.epf"+ ".epf" + vbCr + "S" + 
    vbCr)
    Fix this and try.

Similar Threads

  1. Replies: 2
    Last Post: 1st Jul 2010, 07:47 pm
  2. When items selected props says "no selection"
    By EMS_0525 in forum Civil 3D & LDD
    Replies: 0
    Last Post: 25th Jun 2010, 01:06 pm
  3. selected objects not showing up as "dashed"
    By streetmike in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 3
    Last Post: 21st Jun 2010, 08:00 pm
  4. macro to scale selected object at point of selection
    By chelsea1307 in forum AutoLISP, Visual LISP & DCL
    Replies: 10
    Last Post: 25th Jun 2009, 11:57 pm
  5. Hesitation with object properties when object is selected
    By Jaxom in forum AutoCAD Drawing Management & Output
    Replies: 0
    Last Post: 23rd Jan 2006, 07:56 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts