AcadSummaryInfo documentation

Discussion in 'AutoCAD' started by Matt W, Jan 2, 2004.

  1. Matt W

    Matt W Guest

    Does anyone have any documentation on AcadSummaryInfo?? I can't seem to find anything in ANY of the help files.

    Thanks in advance!

    ~ Matt W
     
    Matt W, Jan 2, 2004
    #1
  2. The only documentation (other than F2) is in the Readme:

    To use VBA or AutoLISP to access drawing properties such as Title, Subject,
    Author, and Keywords, the IAcadSummaryInfo interface must be used. The
    IAcadSummaryInfo interface is accessible as the SummaryInfo property of the
    Document object in the AutoCAD object model. The interface has 8 string
    (BSTR) properties (Author, Comments, HyperlinkBase, Keywords, LastSavedBy,
    RevisionNumber, Subject, and Title), as well as methods for using custom
    properties. The index of a custom property is zero-based. Its range is zero
    to the number of custom properties, minus one. Additional information on
    IAcadSummaryInfo is available in the VBA Object Browser.


    But the object model is rather straight-forward. Did you have a particular
    concern?


    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | Does anyone have any documentation on AcadSummaryInfo?? I can't seem to
    find anything in ANY of the help files.
    |
    | Thanks in advance!
    |
    | ~ Matt W
     
    R. Robert Bell, Jan 2, 2004
    #2
  3. Matt W

    Matt W Guest

    Robert: Thanks for the reply. I figured either you or Frank O would chime in sooner or later.

    Is there any way to set the Title and Author?? It seems that they're just read-only.

    Also, how many custom information fields can be set??
    At first glance, it would appear that the Custom tab of the drawing properties would only allow you to set 20 custom fields, but, when I use AddCustomInfo, it seems that you can add as many as you want (I.E. I've successfully added 3100 according to NumCustomInfo). Where does this extra info go and how can it be accessed??

    Basically what I'm getting at is....
    I want to create a little prog that runs inside the AcadDocument_BeginSave function that will record, in the fields of the Custom tab, who last saved the drawing and the date and when all of the Custom Properties fields are used up, I want to add the new information at the bottom and shift everything up a level.

    Thanks in advance!

    ~ Matt W
     
    Matt W, Jan 2, 2004
    #3
  4. Matt,

    The Title and Author are *not* RO; I don't know what you tried. Does this
    example clear things up (esp. regarding the Custom fields)?

    Sub Test()
    Dim infoSummary As AcadSummaryInfo
    Set infoSummary = ThisDrawing.SummaryInfo

    infoSummary.Author = "R. Robert Bell"
    infoSummary.Title = "SummaryInfo Test"

    infoSummary.AddCustomInfo "Save1", "Rebel"
    Dim i As Integer
    Dim pKey As String
    Dim pValue As String
    For i = 0 To infoSummary.NumCustomInfo - 1
    infoSummary.GetCustomByIndex i, pKey, pValue
    Debug.Print i, pKey, pValue
    Next i
    End Sub



    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | Robert: Thanks for the reply. I figured either you or Frank O would chime
    in sooner or later.
    |
    | Is there any way to set the Title and Author?? It seems that they're just
    read-only.
    |
    | Also, how many custom information fields can be set??
    | At first glance, it would appear that the Custom tab of the drawing
    properties would only allow you to set 20 custom fields, but, when I use
    AddCustomInfo, it seems that you can add as many as you want (I.E. I've
    successfully added 3100 according to NumCustomInfo). Where does this extra
    info go and how can it be accessed??
    |
    | Basically what I'm getting at is....
    | I want to create a little prog that runs inside the
    AcadDocument_BeginSave function that will record, in the fields of the
    Custom tab, who last saved the drawing and the date and when all of the
    Custom Properties fields are used up, I want to add the new information at
    the bottom and shift everything up a level.
    |
    | Thanks in advance!
    |
    | ~ Matt W
     
    R. Robert Bell, Jan 2, 2004
    #4
  5. Matt W

    ramonc Guest

    Hello Robert, is this for acad 2004 only? I am trying it in 2002 and the
    object browser doen't seem to recognize it at all.

    Is it different for 2002?

    Any help will greatly appreciated.

    Ramon.
     
    ramonc, Jan 29, 2004
    #5
  6. Yes, it is different.

    Prior to A2k4, you need to look in the dictionary ("DWGPROPS") for the
    information.



    --
    R. Robert Bell, MCSE
    www.AcadX.com


    |
    | Hello Robert, is this for acad 2004 only? I am trying it in 2002 and the
    | object browser doen't seem to recognize it at all.
    |
    | Is it different for 2002?
    |
    | Any help will greatly appreciated.
    |
    | Ramon.
    |
    |
    | --
    | ramonc - Have I mentioned that I like Devo?
    |
    | We don't want no stinking sequential, long live random access.
    | ------------------------------------------------------------------------
    | ramonc's Profile:
    http://www.vbdesign.net/expresso/member.php?action=getinfo&userid=290
    | View this thread:
    http://www.vbdesign.net/expresso/showthread.php?threadid=24713
    |
     
    R. Robert Bell, Jan 29, 2004
    #6
  7. Tony Tanzillo, Jan 29, 2004
    #7
  8. R. Robert Bell, Jan 29, 2004
    #8
  9. Matt W

    ramonc Guest

    NNTP-Posting-Host: 69.57.142.84
    X-Trace: newsprd01 1075467895 69.57.142.84 (30 Jan 2004 13:04:55 GMT)
    Lines: 20
    Path: intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsprd01!not-for-mail
    Xref: intern1.nntp.aus1.giganews.com autodesk.autocad.customization.vba:39361


    Thank you Robert, now I have another question. You probably know the
    answer; how can you access the properties outside of ACAD. Or any other
    app. Most Windows documents have properties, which can be viewed with
    Windows Explorer. Is there an ARX or other that can help read the
    information?

    Thanks again, (peanuts to you)

    Ramon.
     
    ramonc, Jan 30, 2004
    #9
  10. There is a redistributal ActiveX control in the Developers section of my
    web site for reading the summary info without AutoCAD.

    BTW, an arx is by definition 'inside' AutoCAD :)

    --
    Best regards,

    Byron Blattel
    CADwerx--Applications for AutoCAD
    Autodesk Registered Developer
    Contact Info @ http://www.cadwerx.net
    Custom Programming Services - ObjectARX/C++/MFC/ASP/STL/ATL/ISAPI...
     
    Byron Blattel, Jan 30, 2004
    #10
  11. Thanks for mentioning that Byron; I didn't know you had one there.

    --
    R. Robert Bell, MCSE
    www.AcadX.com


    "Byron Blattel" <byronatcadwerxdotnet> wrote in message
    | ramonc wrote:
    |
    | There is a redistributal ActiveX control in the Developers section of my
    | web site for reading the summary info without AutoCAD.
    |
    | BTW, an arx is by definition 'inside' AutoCAD :)
    |
     
    R. Robert Bell, Jan 30, 2004
    #11
  12. Didn't until right before I posted ;)

    --
    Best regards,

    Byron Blattel
    CADwerx--Applications for AutoCAD
    Autodesk Registered Developer
    Contact Info @ http://www.cadwerx.net
    Custom Programming Services - ObjectARX/C++/MFC/ASP/STL/ATL/ISAPI...
     
    Byron Blattel, Jan 30, 2004
    #12
  13. Matt W

    ramonc Guest

    Thank you Byron, and yes, you are right ARX is within Autocad.
    Ramon.
     
    ramonc, Jan 30, 2004
    #13
  14. Matt W

    wivory Guest

    Byron,

    Just downloaded dwgpropsx and tried it out in VB. I could reference everything okay but all the properties came up blank (except the dates which came up 12:00:00 AM). Any chance of a quick VB wrapper here and/or on your site?

    Thanks

    Wayne Ivory
    IT Analyst Programmer
    Wespine Industries Pty Ltd
     
    wivory, Feb 10, 2004
    #14
  15. Well, my VB is pretty poor but this works for me-

    Dim dwgprops As DWGPROPSXLib.Properties
    Set dwgprops = New DWGPROPSXLib.Properties
    dwgprops.Load "C:\Program Files\ACAD2000\SUPPORT\chroma.dwg"
    MsgBox (dwgprops.Title)
    MsgBox (dwgprops.Keywords)
    MsgBox (dwgprops.Author)
    Set dwgprops = Nothing

    Note this is a read-only control the info still needs to be added via
    AutoCAD/ObjectDBX methods.

    --
    Best regards,

    Byron Blattel
    CADwerx--Applications for AutoCAD
    Autodesk Registered Developer
    Contact Info @ http://www.cadwerx.net
    Custom Programming Services - ObjectARX/C++/MFC/ASP/STL/ATL/ISAPI...
     
    Byron Blattel, Feb 10, 2004
    #15
  16. Matt W

    JJS Guest

    YES HE DOES.
     
    JJS, Feb 10, 2004
    #16
  17. Matt W

    JJS Guest

    Does anyone know if Mr. Google has a license
    to reproduce the contents of this newsgroup on his
    web site?
     
    JJS, Feb 10, 2004
    #17
  18. Tony Tanzillo, Feb 10, 2004
    #18
  19. Matt W

    Se7en Guest

    I dont get it. (Seriously, im not trying to be a smarta.. or anything.)
    Isnt he getting the "info" from acad? --I seriously doubt hes going
    thru google to get the info. (??)-- So that 'use of material' of
    googles wouldnt apply. ...right?

    What is wrong with Randall displaying the information on his site?

     
    Se7en, Feb 10, 2004
    #19
  20. It looks like he's working from the NTTP protocol. I don't see the
    difference between what he's doing and any newsgroup reader. It just
    happens to be via a web interface...

    --
    Best regards,

    Byron Blattel
    CADwerx--Applications for AutoCAD
    Autodesk Registered Developer
    Contact Info @ http://www.cadwerx.net
    Custom Programming Services - ObjectARX/C++/MFC/ASP/STL/ATL/ISAPI...
     
    Byron Blattel, Feb 10, 2004
    #20
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.