<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Access DWG SummaryInfo Custom Properties in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909736#M78679</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the input.  Although the code you supplied is error free when inserted, as soon as I run it and it gets to the call statement, once agasn I get an error.  For some reason that's beyond me, it falls over on the:-&lt;BR /&gt;
&lt;BR /&gt;
'Dim doc As Document = Application.DocumentManager.MdiActiveDocument'&lt;BR /&gt;
&lt;BR /&gt;
line. Any ideas why?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
G</description>
    <pubDate>Fri, 09 Mar 2007 11:39:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-03-09T11:39:24Z</dc:date>
    <item>
      <title>Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909730#M78673</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
Would really appreciate any help that anybody can give me on this.&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to programatically access the Custom Properties of a DWG's SummaryInfo, but am constantly coming up against various errors.&lt;BR /&gt;
&lt;BR /&gt;
From the examples I've found and the other posts I've come across I have to create a new Database object (Autodesk.AutoCAD.DatabaseServices.Database) but when I do I get the following message.&lt;BR /&gt;
&lt;BR /&gt;
Dim DB as New Database(False, True)&lt;BR /&gt;
&lt;BR /&gt;
'AccessViolationException was unhandled'&lt;BR /&gt;
'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'&lt;BR /&gt;
&lt;BR /&gt;
As you might have guessed I'm new to .NET having done all my previous work in VBA.&lt;BR /&gt;
&lt;BR /&gt;
Any help will be very much appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;
G</description>
      <pubDate>Thu, 08 Mar 2007 11:17:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909730#M78673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-08T11:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909731#M78674</link>
      <description>try this&lt;BR /&gt;
&lt;BR /&gt;
Using DB As Database = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Database&lt;BR /&gt;
            Dim objSumBuilder As DatabaseSummaryInfoBuilder = New DatabaseSummaryInfoBuilder(DB.SummaryInfo)&lt;BR /&gt;
&lt;BR /&gt;
pat</description>
      <pubDate>Thu, 08 Mar 2007 14:29:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909731#M78674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-08T14:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909732#M78675</link>
      <description>Hi Pat&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help.  I spliced in the code snippet you posted and now the error message reads:-&lt;BR /&gt;
&lt;BR /&gt;
'TypeInializationException was unhandled'&lt;BR /&gt;
'The type initializer for 'Module' threw an exception.'&lt;BR /&gt;
&lt;BR /&gt;
During my searches I came across your post on 'Custom Properties' from Nov 06 and tried that solution as well, with the same error.  Do you have a completed sub that I can try and call?&lt;BR /&gt;
&lt;BR /&gt;
All I've managed to discover so far is that vb does not like the 'database' object that's being defined. If I comment it out then the code steps through without a hitch. I'm using the 'Autodesk.AutoCAD.DatabaseServices.Database' object.  That is the right on isn't it?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for all you help&lt;BR /&gt;
&lt;BR /&gt;
G</description>
      <pubDate>Thu, 08 Mar 2007 15:23:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909732#M78675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-08T15:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909733#M78676</link>
      <description>this is getting the properties&lt;BR /&gt;
&lt;BR /&gt;
 Dim Size As New System.Drawing.Size&lt;BR /&gt;
        Dim objStd As StringManipulation.Standards = New StringManipulation.Standards&lt;BR /&gt;
        Dim DB As Database = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Database&lt;BR /&gt;
        Dim objSumBuilder As DatabaseSummaryInfoBuilder = New DatabaseSummaryInfoBuilder(DB.SummaryInfo)&lt;BR /&gt;
        Dim Dict As StringDictionary = objSumBuilder.CustomProperties&lt;BR /&gt;
        Dim objOldSummary As DatabaseSummaryInfo = DB.SummaryInfo&lt;BR /&gt;
        txtDrawingNo.Text = objStd.RemoveExtension(Autodesk.AutoCAD.ApplicationServices.Application.GetSystemVariable("DWGNAME")) : txtDrawingNo.Enabled = False&lt;BR /&gt;
&lt;BR /&gt;
        'Me.Size = New System.Drawing.Size(425, 390)&lt;BR /&gt;
&lt;BR /&gt;
        txtDrafter.Text = objOldSummary.Author&lt;BR /&gt;
        txtCustomer.Text = objOldSummary.Title&lt;BR /&gt;
        For Each entry As DictionaryEntry In Dict&lt;BR /&gt;
            entry.Key = CType(objStd.CamelCase(CStr(entry.Key)), Object)&lt;BR /&gt;
        Next&lt;BR /&gt;
&lt;BR /&gt;
        For Each entry As DictionaryEntry In Dict&lt;BR /&gt;
            If entry.Key = "office" Then txtOffice.Text = CStr(entry.Value)&lt;BR /&gt;
            If entry.Key = "job number" Then txtJobNumber.Text = CStr(entry.Value)&lt;BR /&gt;
            If entry.Key = "location" Then txtLocation.Text = CStr(entry.Value)&lt;BR /&gt;
            If entry.Key = "drafter date" Then txtDrafterDate.Text = CStr(entry.Value)&lt;BR /&gt;
            If entry.Key = "checker" Then txtCheck.Text = CStr(entry.Value)&lt;BR /&gt;
            If entry.Key = "checker date" Then txtCheckDate.Text = CStr(entry.Value)&lt;BR /&gt;
            If entry.Key = "revised date 1" Then txtRevised1.Text = CStr(entry.Value)&lt;BR /&gt;
            If entry.Key = "revised date 2" Then txtRevised2.Text = CStr(entry.Value)&lt;BR /&gt;
            If entry.Key = "revised date 3" Then txtRevised3.Text = CStr(entry.Value)&lt;BR /&gt;
            If entry.Key = "revised date 4" Then txtRevised4.Text = CStr(entry.Value)&lt;BR /&gt;
            'If entry.Key = "misc" Then txtMisc.Text = CStr(entry.Value) leave if want to use in the future&lt;BR /&gt;
        Next&lt;BR /&gt;
&lt;BR /&gt;
        ' Add any initialization after the InitializeComponent() call.&lt;BR /&gt;
&lt;BR /&gt;
        Dim intDummy As Integer = Dict.Count&lt;BR /&gt;
&lt;BR /&gt;
        txtJobNumber.Text = objStd.StringInsertion(txtDrawingNo.Text, "-")&lt;BR /&gt;
        If txtOffice.Text = "" Or txtOffice.Text = "NA" Then&lt;BR /&gt;
            txtOffice.Text = OfficeName()&lt;BR /&gt;
        End If&lt;BR /&gt;
        objOldSummary = Nothing&lt;BR /&gt;
        If txtRevised1.Text = "" Then&lt;BR /&gt;
            txtRevised2.Enabled = False&lt;BR /&gt;
            txtRevised3.Enabled = False&lt;BR /&gt;
            txtRevised4.Enabled = False&lt;BR /&gt;
        End If&lt;BR /&gt;
        If txtRevised2.Text = "" Then&lt;BR /&gt;
            txtRevised3.Enabled = False&lt;BR /&gt;
            txtRevised4.Enabled = False&lt;BR /&gt;
        Else&lt;BR /&gt;
            txtRevised2.Enabled = True&lt;BR /&gt;
        End If&lt;BR /&gt;
        If txtRevised3.Text = "" Then&lt;BR /&gt;
            txtRevised4.Enabled = False&lt;BR /&gt;
        Else&lt;BR /&gt;
            txtRevised3.Enabled = True&lt;BR /&gt;
        End If&lt;BR /&gt;
        If txtRevised4.Text = "" Then&lt;BR /&gt;
        Else&lt;BR /&gt;
            txtRevised3.Enabled = True&lt;BR /&gt;
        End If&lt;BR /&gt;
        LogoInfo()&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
pat</description>
      <pubDate>Thu, 08 Mar 2007 15:58:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909733#M78676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-08T15:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909734#M78677</link>
      <description>this is setting the properties&lt;BR /&gt;
Dim objStd As StringManipulation.Standards = New StringManipulation.Standards&lt;BR /&gt;
        Using DB As Database = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Database&lt;BR /&gt;
            Dim objSumBuilder As DatabaseSummaryInfoBuilder = New DatabaseSummaryInfoBuilder(DB.SummaryInfo)&lt;BR /&gt;
&lt;BR /&gt;
            Try&lt;BR /&gt;
                'this is updating the drawing properties from what is selected.  All the properties have to be &lt;BR /&gt;
                'replaced becasue autocad replaces the properties on any ypdating&lt;BR /&gt;
                objSumBuilder.Author = txtDrafter.Text&lt;BR /&gt;
                objSumBuilder.Title = txtCustomer.Text&lt;BR /&gt;
                If txtOffice.Text = "NA" Then&lt;BR /&gt;
                    objSumBuilder.CustomProperties.Item("office") = "NA"&lt;BR /&gt;
                Else&lt;BR /&gt;
                    objSumBuilder.CustomProperties.Item("office") = objStd.CamelCase(txtOffice.Text)&lt;BR /&gt;
                End If&lt;BR /&gt;
&lt;BR /&gt;
                objSumBuilder.CustomProperties.Item("job number") = objStd.CamelCase(txtJobNumber.Text)&lt;BR /&gt;
                objSumBuilder.CustomProperties.Item("location") = objStd.CamelCase(txtLocation.Text)&lt;BR /&gt;
                objSumBuilder.CustomProperties.Item("drafter date") = objStd.CamelCase(txtDrafterDate.Text)&lt;BR /&gt;
                objSumBuilder.CustomProperties.Item("checker") = objStd.CamelCase(txtCheck.Text)&lt;BR /&gt;
                objSumBuilder.CustomProperties.Item("checker date") = objStd.CamelCase(txtCheckDate.Text)&lt;BR /&gt;
                objSumBuilder.CustomProperties.Item("revised date 1") = objStd.CamelCase(txtRevised1.Text)&lt;BR /&gt;
                objSumBuilder.CustomProperties.Item("revised date 2") = objStd.CamelCase(txtRevised2.Text)&lt;BR /&gt;
                objSumBuilder.CustomProperties.Item("revised date 3") = objStd.CamelCase(txtRevised3.Text)&lt;BR /&gt;
                objSumBuilder.CustomProperties.Item("revised date 4") = objStd.CamelCase(txtRevised4.Text)&lt;BR /&gt;
                'objSumBuilder.CustomProperties.Item("misc") = txtMisc.Text leave this just in case they want to be able to reuse it in the future&lt;BR /&gt;
&lt;BR /&gt;
                DB.SummaryInfo = objSumBuilder.ToDatabaseSummaryInfo&lt;BR /&gt;
                'this is checking to see if there was any changes to the logo selection box, if so it will&lt;BR /&gt;
                'update all the logos on the approiate tabs, not on the SB and Z tabs&lt;BR /&gt;
                If objValue &amp;lt;&amp;gt; cmbLogo.SelectedItem Then&lt;BR /&gt;
                    LogoUpdate()&lt;BR /&gt;
                End If&lt;BR /&gt;
&lt;BR /&gt;
            Catch ex As System.Exception&lt;BR /&gt;
                MsgBox(ex.Message, MsgBoxStyle.OkOnly, "Exception")&lt;BR /&gt;
            Finally&lt;BR /&gt;
                objSumBuilder = Nothing&lt;BR /&gt;
                Me.Close()&lt;BR /&gt;
            End Try&lt;BR /&gt;
        End Using&lt;BR /&gt;
    End Sub&lt;BR /&gt;
&lt;BR /&gt;
pat</description>
      <pubDate>Thu, 08 Mar 2007 15:59:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909734#M78677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-08T15:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909735#M78678</link>
      <description>See how this will working for you&lt;BR /&gt;
Hth&lt;BR /&gt;
&lt;BR /&gt;
~'J'~&lt;BR /&gt;
&lt;BR /&gt;
Imports System&lt;BR /&gt;
Imports Autodesk.AutoCAD&lt;BR /&gt;
Imports Autodesk.AutoCAD.Runtime&lt;BR /&gt;
Imports Autodesk.AutoCAD.ApplicationServices&lt;BR /&gt;
Imports Autodesk.AutoCAD.DatabaseServices&lt;BR /&gt;
&lt;BR /&gt;
Namespace DwgProps&lt;BR /&gt;
&lt;BR /&gt;
    Public Class DwgSummaryInfo&lt;BR /&gt;
        &lt;COMMANDMETHOD&gt; _&lt;BR /&gt;
        Public Sub GetSummInfo()&lt;BR /&gt;
            Dim doc As Document = Application.DocumentManager.MdiActiveDocument&lt;BR /&gt;
&lt;BR /&gt;
            Dim author As String&lt;BR /&gt;
            Dim coms As String&lt;BR /&gt;
            Dim subt As String&lt;BR /&gt;
            Dim titl As String&lt;BR /&gt;
            Dim revnum As String&lt;BR /&gt;
            Dim lastsave As String&lt;BR /&gt;
            Dim keyw As String&lt;BR /&gt;
            Dim hyp As String&lt;BR /&gt;
&lt;BR /&gt;
            With doc.Database.SummaryInfo&lt;BR /&gt;
                author = .Author&lt;BR /&gt;
                coms = .Comments&lt;BR /&gt;
                subt = .Subject&lt;BR /&gt;
                titl = .Title&lt;BR /&gt;
                revnum = .RevisionNumber&lt;BR /&gt;
                lastsave = .LastSavedBy&lt;BR /&gt;
                keyw = .Keywords&lt;BR /&gt;
                hyp = .HyperlinkBase&lt;BR /&gt;
&lt;BR /&gt;
            End With&lt;BR /&gt;
            Dim sbuild As DatabaseSummaryInfoBuilder = New DatabaseSummaryInfoBuilder(doc.Database.SummaryInfo)&lt;BR /&gt;
            Dim Dict As Specialized.StringDictionary = sbuild.CustomProperties&lt;BR /&gt;
            Dim dkey As String&lt;BR /&gt;
            Dim dval As String&lt;BR /&gt;
            For Each entry As DictionaryEntry In Dict&lt;BR /&gt;
                dkey = entry.Key&lt;BR /&gt;
                dval = entry.Value&lt;BR /&gt;
                MsgBox(dkey &amp;amp; "    " &amp;amp; dval)&lt;BR /&gt;
            Next&lt;BR /&gt;
&lt;BR /&gt;
            MsgBox(author &amp;amp; vbNewLine _&lt;BR /&gt;
            &amp;amp; coms &amp;amp; vbNewLine _&lt;BR /&gt;
            &amp;amp; subt &amp;amp; vbNewLine _&lt;BR /&gt;
            &amp;amp; revnum &amp;amp; vbNewLine _&lt;BR /&gt;
            &amp;amp; keyw &amp;amp; vbNewLine _&lt;BR /&gt;
            &amp;amp; lastsave &amp;amp; vbNewLine _&lt;BR /&gt;
            &amp;amp; hyp &amp;amp; vbNewLine _&lt;BR /&gt;
            &amp;amp; titl)&lt;BR /&gt;
&lt;BR /&gt;
        End Sub&lt;BR /&gt;
&lt;BR /&gt;
    End Class&lt;BR /&gt;
End Namespace&lt;/COMMANDMETHOD&gt;</description>
      <pubDate>Thu, 08 Mar 2007 19:04:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909735#M78678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-08T19:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909736#M78679</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the input.  Although the code you supplied is error free when inserted, as soon as I run it and it gets to the call statement, once agasn I get an error.  For some reason that's beyond me, it falls over on the:-&lt;BR /&gt;
&lt;BR /&gt;
'Dim doc As Document = Application.DocumentManager.MdiActiveDocument'&lt;BR /&gt;
&lt;BR /&gt;
line. Any ideas why?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
G</description>
      <pubDate>Fri, 09 Mar 2007 11:39:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909736#M78679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-09T11:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909737#M78680</link>
      <description>Hi Pat&lt;BR /&gt;
&lt;BR /&gt;
Thanks for all the code.  Unfortunately it still falls over on the Call statement because of the:-&lt;BR /&gt;
&lt;BR /&gt;
'Dim DB As Database = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocum ent.Database'&lt;BR /&gt;
&lt;BR /&gt;
line.  I can't believe its been made so difficult to acces these custom properties boxes.  Anyway, any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks&lt;BR /&gt;
&lt;BR /&gt;
G</description>
      <pubDate>Fri, 09 Mar 2007 11:41:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909737#M78680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-09T11:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909738#M78681</link>
      <description>why don't you post your code&lt;BR /&gt;
&lt;BR /&gt;
pat</description>
      <pubDate>Fri, 09 Mar 2007 12:23:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909738#M78681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-09T12:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909739#M78682</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I've done as you suggested and uploaded my code.  Because its a bit lengthy, I've attached it as a word document.&lt;BR /&gt;
&lt;BR /&gt;
All I'm trying to do, is take a load of information from a central database (subsituted with a dummy sub for now) and add i to the custom properties of a drawing.  So in case I've screwed up somewhere else, I've attache the whole thing.  I am using multiple modules for this, but I've cut and paste them all together fir simplicity.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.&lt;BR /&gt;
&lt;BR /&gt;
G</description>
      <pubDate>Fri, 09 Mar 2007 13:52:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909739#M78682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-09T13:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909740#M78683</link>
      <description>change Dim DB As Database to&lt;BR /&gt;
Using DB As Database &lt;BR /&gt;
&lt;BR /&gt;
at the end of the sub put end using&lt;BR /&gt;
&lt;BR /&gt;
see if that works&lt;BR /&gt;
&lt;BR /&gt;
pat</description>
      <pubDate>Fri, 09 Mar 2007 14:47:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909740#M78683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-09T14:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909741#M78684</link>
      <description>No luck I'm afraid.  Still getting the 'TypeInializationException was unhandled' error.&lt;BR /&gt;
&lt;BR /&gt;
G</description>
      <pubDate>Fri, 09 Mar 2007 15:06:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909741#M78684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-09T15:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909742#M78685</link>
      <description>Hi. Sorry to say this, but it looks like you're&lt;BR /&gt;
in this way over your head, and probably need&lt;BR /&gt;
to spend a little more time getting familiar with&lt;BR /&gt;
some of the basics of using the managed API.&lt;BR /&gt;
&lt;BR /&gt;
You are trying to use the Managed .NET API&lt;BR /&gt;
for AutoCAD, from an external process.&lt;BR /&gt;
&lt;BR /&gt;
You can't do that. &lt;BR /&gt;
&lt;BR /&gt;
You can only use the managed API from a&lt;BR /&gt;
a DLL that's loaded into AutoCAD.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;CAD4ME&gt; wrote in message news:5513468@discussion.autodesk.com...&lt;BR /&gt;
No luck I'm afraid.  Still getting the 'TypeInializationException was unhandled' error.&lt;BR /&gt;
&lt;BR /&gt;
G&lt;/CAD4ME&gt;</description>
      <pubDate>Fri, 09 Mar 2007 17:03:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909742#M78685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-09T17:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909743#M78686</link>
      <description>Tony, could he put that in a DLL that is loaded upon opening and then get what he wants from using an event.&lt;BR /&gt;
&lt;BR /&gt;
He would have to redo his code of cours&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
pat</description>
      <pubDate>Fri, 09 Mar 2007 17:32:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909743#M78686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-09T17:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909744#M78687</link>
      <description>He can build a COM server that loads into&lt;BR /&gt;
AutoCAD and uses the managed API, and&lt;BR /&gt;
expose it to an external client.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;PATRICK johnson=""&gt; wrote in message news:5513775@discussion.autodesk.com...&lt;BR /&gt;
Tony, could he put that in a DLL that is loaded upon opening and then get what he wants from using an event.&lt;BR /&gt;
&lt;BR /&gt;
He would have to redo his code of cours&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
pat&lt;/PATRICK&gt;</description>
      <pubDate>Sat, 10 Mar 2007 01:43:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909744#M78687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-10T01:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909745#M78688</link>
      <description>Many thanks to all who've responded to my plea.  I think I'm going ot shelve .NET for now and go onto VB6 instead. A much smaller step from VBA.  And I managed to access the Custom Properties without any hassle too.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again to all.&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;
G</description>
      <pubDate>Thu, 15 Mar 2007 09:37:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909745#M78688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-15T09:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909746#M78689</link>
      <description>Are your issues with .NET in general or just the AutoCAD .NET API. If it is the latter you can still use the ActiveX API with a .NET language.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Thu, 15 Mar 2007 22:07:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909746#M78689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-15T22:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909747#M78690</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
Its both I'm afraid.  I've been manipulating AutoCAD through VBA for over a year now with great sucsess.  I thought that AutoCAD 2007 now being .NET enabled, would allow for far greater flexibility but there is precious little documentation around, tutorials etc, about driving AutoCAD from VB.NET.&lt;BR /&gt;
&lt;BR /&gt;
So seeing that I was struggling with the new language, the powers that be took me off it and gave VB6 instead. If you know of any material that covers AutoCAD and VB.NET (not C#) I'd be most interested in reading it, as its still my ultimate goal.&lt;BR /&gt;
&lt;BR /&gt;
I did get hold of a copy of the AutoCAD 2007 API Training Labs but the code examples in there a) don't work, even when cut and paste, and b) don't match the example files that go with them. Brilliant!&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;
G</description>
      <pubDate>Fri, 16 Mar 2007 09:22:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909747#M78690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-16T09:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909748#M78691</link>
      <description>I'm having the same kind of problem. I'm using C#. I want to access (read/write) custom file properties in a DWG file from an external process I guess (without starting AutoCAD or anything). So, is this possible in any way?</description>
      <pubDate>Wed, 10 Oct 2007 06:48:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909748#M78691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-10T06:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Access DWG SummaryInfo Custom Properties</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909749#M78692</link>
      <description>I guess using the ActiveX API is a solution if I want to reach a dwg-file without AutoCAD started. What references should be added for this? And does anyone have any code examples explaining how to read/edit custom dwg file properties that way? I'm trying to solve this using C#, but I'm stuck.</description>
      <pubDate>Mon, 22 Oct 2007 14:05:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-dwg-summaryinfo-custom-properties/m-p/1909749#M78692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-22T14:05:19Z</dc:date>
    </item>
  </channel>
</rss>

