IMAGE entity particulars.

Discussion in 'AutoCAD' started by blammo, Nov 8, 2004.

  1. blammo

    blammo Guest

    All,

    Quick question about IMAGE DXF data.

    I have this returning the local file name of the inserted image entity
    (after picking it):

    (assoc 1 (entget (cdr (assoc 340 (entget (car (entsel)))))))

    But how do I retrieve the inserted image name, which was assigned via:

    (command "_-image" "attach" (strcat new_file "=" file_loc)

    I'm trying to retrieve the assigned name, not the FILE name, which I
    already have above. What group code is used to retrieve it?

    Thanks

    bobb
     
    blammo, Nov 8, 2004
    #1
  2. Have you looked at the "ACAD_IMAGE_DICT"
    dictionary?
     
    Jason Piercey, Nov 8, 2004
    #2
  3. blammo

    BillZ Guest

    (vl-filename-base(cdr (assoc 1 (entget (cdr (assoc 340 (entget
    (car (entsel)))))))))


    ???


    Bill
     
    BillZ, Nov 8, 2004
    #3
  4. blammo

    blammo Guest


    That was close, that outputs the base file name for the inserted image
    (in the OS) I'm looking for the re-assigned name during the attach process:

    This Window JPG file = This name inside of AutoCAD.

    I'm looking for the name used to store the image inside of AutoCAD

    I construct my own name upon attachment that is NOT the same as the file
    name being inserted. So now I need to retrieve the NAme being assigned
    during the image import process.

    bobb
     
    blammo, Nov 9, 2004
    #4
  5. blammo

    blammo Guest

    I did a DXFOUT and found all the numbers (I think)

    the inserted image name:

    DICTIONARY
    5
    75
    102
    {ACAD_REACTORS
    330
    C
    102
    }
    330
    C
    100
    AcDbDictionary
    281
    1
    3
    gilda_54591.6_51090.8_72016.7_65207.0_citipix
    350
    76
    0
    RASTERVARIABLES
    5
    77
    102
    {ACAD_REACTORS
    330
    C
    102
    }
    330
    C
    100
    AcDbRasterVariables
    90
    0
    70
    1
    71
    1
    72
    5
    0




    and the Name it is stored as inside of AutoCAD:



    IMAGEDEF
    5
    76
    102
    {ACAD_REACTORS
    330
    75
    330
    78
    102
    }
    330
    75
    100
    AcDbRasterImageDef
    90
    0
    1
    C:\Documents and Settings\Administrator\Local Settings\Temporary
    Internet Files\Content.IE5\7NX7JLS8\url3[5].map
    10
    295.0
    20
    239.0
    11
    0.0033898305084746
    21
    0.0033898305084746
    280
    1
    281
    0
    0




    bobb
     
    blammo, Nov 9, 2004
    #5
  6. You are looking for the renamed name of
    an image, correct?
     
    Jason Piercey, Nov 9, 2004
    #6
  7. blammo

    blammo Guest

    I only see one reference to this in all of the DOC's It's in the
    IMAGEDEF list (what is an IMAGEDEF object anyway, how do I select that?)

    bobb
     
    blammo, Nov 9, 2004
    #7
  8. blammo

    blammo Guest

    Yes.

    The image is inserted into autocad like this:

    AutoCAD insert name = OS filename (which is very cryptic, hence the need
    to decode by re-assigning during the insert process.)

    I can retrieve the OS file name, but I'm having trouble even finding the
    Acad name re-assignment (inside of AutoCAD)

    I have a seperate routine that inserts the images, now I want to
    retrieve these same inserted images by the re-assigned names for another
    process.


    bobb
     
    blammo, Nov 9, 2004
    #8
  9. If I attach an image, rename it within the image
    manager.

    (dictsearch (namedobjdict) "acad_image_dict")

    The new name is listed as dxf code 3.
     
    Jason Piercey, Nov 9, 2004
    #9
  10. blammo

    blammo Guest

    That did it. How'd you get so smart (on Image Definitions? :c)



    (dictsearch (namedobjdict) "acad_image_dict")

    ((-1 . <Entity name: 40217d60>) (0 . "DICTIONARY") (5 . "2C") (102 .
    "{ACAD_REACTORS") (330 . <Entity name: 40217c60>) (102 . "}") (330 .
    <Entity
    name: 40217c60>) (100 . "AcDbDictionary") (280 . 0) (281 . 1) (3 .
    "gilda_52908.5_37214.5_67935.1_48475.5_citipix") (350 . <Entity name:
    40217df0>) (3 . "gilda_55257.9_50725.8_64874.9_57932.8_citipix") (350 .
    <Entity
    name: 40217dd8>))




    bobb
     
    blammo, Nov 9, 2004
    #10
  11. Glad I could help...
     
    Jason Piercey, Nov 9, 2004
    #11
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.