Author Topic: properties summary  (Read 3666 times)

0 Members and 1 Guest are viewing this topic.

Humbertogo

  • Guest
properties summary
« on: March 21, 2006, 02:58:37 PM »
Is there a way to add  properties without running AutoCAD VB6.?

properties summary
title:
subject:
author:

category:

Jim Yadon

  • Guest
Re: properties summary
« Reply #1 on: March 21, 2006, 09:36:50 PM »
Go to the File menu and select Drawing Properties.



Does that help or were you looking for a way to access it with another programming language?

Humbertogo

  • Guest
Re: properties summary
« Reply #2 on: March 22, 2006, 04:31:43 AM »
i mean from vb


I want to get/set File Summary Information related to files, e.g., Title, Subject, Comments etc. We can set these properties by right clicking on a file, taking its properties and going to summary section.
I have already tried System.Diagnostics.FileVersionInfo.GetVersionInfo which has several methods and properties to do so but it did'nt work out.

Does any one have any idea how to do this?

Jürg Menzi

  • Swamp Rat
  • Posts: 599
  • Oberegg, Switzerland
Re: properties summary
« Reply #3 on: March 22, 2006, 05:45:38 AM »
Look at this to get some ideas (needs a reference to 'AutoCAD/ObjectDBX Common 16.0 Type Library'):
Code: [Select]
Sub testdbx()

    Dim oAca As Object
    Dim oDbx As AxDbDocument
    Dim oSin As AcadSummaryInfo
   
    Set oAca = GetObject(, "AutoCAD.Application.16.1") 'AutoCAD 2005
    Set oDbx = oAca.GetInterfaceObject("ObjectDBX.AxDbDocument.16") 'ObjectDBX 2004-2006
   
    oDbx.Open "C:\Temp\Test.dwg"
    Set oSin = oDbx.SummaryInfo
   
    With oSin
        Debug.Print .Author, .Title, .Subject 'etc.
    End With
   
    Set oSin = Nothing
    Set oDbx = Nothing
    Set oAca = Nothing

End Sub
A computer's human touch is its unscrupulousness!
MENZI ENGINEERING GmbH
Current A2k16... A2k24 - Start R2.18

Humbertogo

  • Guest
Re: properties summary
« Reply #4 on: March 22, 2006, 06:07:32 AM »
thank again
Jürg  :lol:

Humbertogo

  • Guest
Re: properties summary
« Reply #5 on: March 22, 2006, 07:07:13 AM »
one more question how can i change the SaveAsType to  ac2000_dwg in your sub testdbx

Jürg Menzi

  • Swamp Rat
  • Posts: 599
  • Oberegg, Switzerland
Re: properties summary
« Reply #6 on: March 22, 2006, 08:34:38 AM »
I'm sorry to say that - it's not supported (ObjectDBX has some limitations/bugs)... :-(
A computer's human touch is its unscrupulousness!
MENZI ENGINEERING GmbH
Current A2k16... A2k24 - Start R2.18

Humbertogo

  • Guest
Re: properties summary
« Reply #7 on: March 22, 2006, 11:10:45 AM »
Thanks any way