<?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: Autodesk.Aec.DatabaseServices.MultiViewBlockReference in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2609999#M67742</link>
    <description>Did you look at the documentation for the MultiViewBlockReference?&lt;BR /&gt;
&lt;BR /&gt;
The properties and methods of the class should give you what you need.&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&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;CHRIS.J.MCKEOWN&gt; wrote in message news:6311328@discussion.autodesk.com...&lt;BR /&gt;
Hi Tony, I believe it's the MultiViewBlockDefinition I'm really after, but is &lt;BR /&gt;
only appended to a drawing once (the first time) but want to get the &lt;BR /&gt;
MultiViewBlockDefinition each time a tag is inserted,&lt;BR /&gt;
So my question is now how do I get the MultiViewBlockDefinition from a &lt;BR /&gt;
MultiViewBlockReference?&lt;BR /&gt;
&lt;BR /&gt;
try&lt;BR /&gt;
{&lt;BR /&gt;
aecdb.MultiViewBlockReference ent = &lt;BR /&gt;
(aecdb.MultiViewBlockReference)tr.GetObject(Obj.ObjectId, OpenMode.ForWrite, &lt;BR /&gt;
true);&lt;BR /&gt;
WriteLine(String.Format("ent.Name {0}:", ent.??????.ToString()));&lt;BR /&gt;
}&lt;BR /&gt;
catch (System.Exception ex)&lt;BR /&gt;
{&lt;BR /&gt;
Helper.Message(ex);&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
Chris&lt;/CHRIS.J.MCKEOWN&gt;</description>
    <pubDate>Sun, 03 Jan 2010 10:50:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-01-03T10:50:40Z</dc:date>
    <item>
      <title>Autodesk.Aec.DatabaseServices.MultiViewBlockReference</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2609996#M67739</link>
      <description>How do I find the definition of a Autodesk.Aec.DatabaseServices.MultiViewBlockReference? So far I have:&lt;BR /&gt;
&lt;BR /&gt;
I can track down the MultiViewBlockReference but not the definition of it.&lt;BR /&gt;
&lt;BR /&gt;
private void callback_ObjectAppended(object sender, ObjectEventArgs e)&lt;BR /&gt;
        {&lt;BR /&gt;
            if (e.DBObject.ToString() == "Autodesk.Aec.DatabaseServices.MultiViewBlockReference")&lt;BR /&gt;
            {&lt;BR /&gt;
                Database db = Application.DocumentManager.MdiActiveDocument.Database;&lt;BR /&gt;
                Autodesk.AutoCAD.DatabaseServices.TransactionManager tm = db.TransactionManager;&lt;BR /&gt;
                using (Transaction tr = tm.StartTransaction())&lt;BR /&gt;
                {&lt;BR /&gt;
                      // &lt;BR /&gt;
                }&lt;BR /&gt;
            }&lt;BR /&gt;
        }&lt;BR /&gt;
&lt;BR /&gt;
Regards &lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Sat, 02 Jan 2010 23:02:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2609996#M67739</guid>
      <dc:creator>chris.j.mckeown</dc:creator>
      <dc:date>2010-01-02T23:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Aec.DatabaseServices.MultiViewBlockReference</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2609997#M67740</link>
      <description>You have to typecast the DBObject to a MultiViewBlockReference.&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&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;CHRIS.J.MCKEOWN&gt; wrote in message news:6311300@discussion.autodesk.com...&lt;BR /&gt;
How do I find the definition of a &lt;BR /&gt;
Autodesk.Aec.DatabaseServices.MultiViewBlockReference? So far I have:&lt;BR /&gt;
&lt;BR /&gt;
I can track down the MultiViewBlockReference but not the definition of it.&lt;BR /&gt;
&lt;BR /&gt;
private void callback_ObjectAppended(object sender, ObjectEventArgs e)&lt;BR /&gt;
        {&lt;BR /&gt;
            if (e.DBObject.ToString() == &lt;BR /&gt;
"Autodesk.Aec.DatabaseServices.MultiViewBlockReference")&lt;BR /&gt;
            {&lt;BR /&gt;
                Database db = &lt;BR /&gt;
Application.DocumentManager.MdiActiveDocument.Database;&lt;BR /&gt;
                Autodesk.AutoCAD.DatabaseServices.TransactionManager tm = &lt;BR /&gt;
db.TransactionManager;&lt;BR /&gt;
                using (Transaction tr = tm.StartTransaction())&lt;BR /&gt;
                {&lt;BR /&gt;
                      //&lt;BR /&gt;
                }&lt;BR /&gt;
            }&lt;BR /&gt;
        }&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
Chris&lt;/CHRIS.J.MCKEOWN&gt;</description>
      <pubDate>Sun, 03 Jan 2010 04:17:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2609997#M67740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-03T04:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Aec.DatabaseServices.MultiViewBlockReference</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2609998#M67741</link>
      <description>Hi Tony, I believe it’s the MultiViewBlockDefinition I'm really after, but is only appended to a drawing once (the first time) but want to get the MultiViewBlockDefinition each time a tag is inserted,&lt;BR /&gt;
So my question is now how do I get the MultiViewBlockDefinition from a MultiViewBlockReference?&lt;BR /&gt;
&lt;BR /&gt;
try&lt;BR /&gt;
{&lt;BR /&gt;
aecdb.MultiViewBlockReference ent = (aecdb.MultiViewBlockReference)tr.GetObject(Obj.ObjectId, OpenMode.ForWrite, true);&lt;BR /&gt;
WriteLine(String.Format("ent.Name {0}:", ent.??????.ToString()));&lt;BR /&gt;
}&lt;BR /&gt;
catch (System.Exception ex)&lt;BR /&gt;
{&lt;BR /&gt;
Helper.Message(ex);&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Sun, 03 Jan 2010 09:33:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2609998#M67741</guid>
      <dc:creator>chris.j.mckeown</dc:creator>
      <dc:date>2010-01-03T09:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Aec.DatabaseServices.MultiViewBlockReference</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2609999#M67742</link>
      <description>Did you look at the documentation for the MultiViewBlockReference?&lt;BR /&gt;
&lt;BR /&gt;
The properties and methods of the class should give you what you need.&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&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;CHRIS.J.MCKEOWN&gt; wrote in message news:6311328@discussion.autodesk.com...&lt;BR /&gt;
Hi Tony, I believe it's the MultiViewBlockDefinition I'm really after, but is &lt;BR /&gt;
only appended to a drawing once (the first time) but want to get the &lt;BR /&gt;
MultiViewBlockDefinition each time a tag is inserted,&lt;BR /&gt;
So my question is now how do I get the MultiViewBlockDefinition from a &lt;BR /&gt;
MultiViewBlockReference?&lt;BR /&gt;
&lt;BR /&gt;
try&lt;BR /&gt;
{&lt;BR /&gt;
aecdb.MultiViewBlockReference ent = &lt;BR /&gt;
(aecdb.MultiViewBlockReference)tr.GetObject(Obj.ObjectId, OpenMode.ForWrite, &lt;BR /&gt;
true);&lt;BR /&gt;
WriteLine(String.Format("ent.Name {0}:", ent.??????.ToString()));&lt;BR /&gt;
}&lt;BR /&gt;
catch (System.Exception ex)&lt;BR /&gt;
{&lt;BR /&gt;
Helper.Message(ex);&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
Chris&lt;/CHRIS.J.MCKEOWN&gt;</description>
      <pubDate>Sun, 03 Jan 2010 10:50:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2609999#M67742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-03T10:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Aec.DatabaseServices.MultiViewBlockReference</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2610000#M67743</link>
      <description>Hi Tony, I have found how to access the MultiViewBlockDefinition from the MultiViewBlockReference via the StyleId&lt;BR /&gt;
&lt;BR /&gt;
MultiViewBlockReference ent = (MultiViewBlockReference)tr.GetObject(Obj.ObjectId, OpenMode.ForRead, true);&lt;BR /&gt;
MultiViewBlockDefinition mvbd = (MultiViewBlockDefinition)tr.GetObject(ent.StyleId, OpenMode.ForRead, true);&lt;BR /&gt;
&lt;BR /&gt;
I have been looking for documentation on .net programming with ACA, without doing a course where is a good starting point to learn the ways and styles of programming correctly in ACA. I have been programming for years but am currently doing a Microsoft course in C#.net &amp;amp; sql...... so starting to build up a programming platform, but there is alot of ACA specific stuff to learn.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Sun, 03 Jan 2010 14:33:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2610000#M67743</guid>
      <dc:creator>chris.j.mckeown</dc:creator>
      <dc:date>2010-01-03T14:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.Aec.DatabaseServices.MultiViewBlockReference</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2610001#M67744</link>
      <description>Chris - You should probably focus more on C# and .NET&lt;BR /&gt;
fundamentals before trying to extensively learn ACA, as the&lt;BR /&gt;
former is a prerequisite to the latter.&lt;BR /&gt;
&lt;BR /&gt;
For example, the code you show below calls GetObject() to&lt;BR /&gt;
open an object that's already open. The DBObject passed&lt;BR /&gt;
into the event handler is the MultiViewBlockReference, and&lt;BR /&gt;
as I mentioned previously, you have to cast it to that type.&lt;BR /&gt;
&lt;BR /&gt;
So, in terms of C# language concepts you're missing a few&lt;BR /&gt;
very basic ones, namely how base classes and derived classes&lt;BR /&gt;
relate to each other, (e.g., MultiViewBlockReference is derived&lt;BR /&gt;
from DBObject), and how to cast an instance of a base type to&lt;BR /&gt;
an instance of a derived type:&lt;BR /&gt;
&lt;BR /&gt;
     DBObject obj = e.DBObject   // e is the ObjectModified event args:&lt;BR /&gt;
&lt;BR /&gt;
     MultiViewBlockReference mvblockRef = obj as MultiViewBlockReference;&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&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;CHRIS.J.MCKEOWN&gt; wrote in message news:6311332@discussion.autodesk.com...&lt;BR /&gt;
Hi Tony, I have found how to access the MultiViewBlockDefinition from the &lt;BR /&gt;
MultiViewBlockReference via the StyleId&lt;BR /&gt;
&lt;BR /&gt;
MultiViewBlockReference ent = &lt;BR /&gt;
(MultiViewBlockReference)tr.GetObject(Obj.ObjectId, OpenMode.ForRead, true);&lt;BR /&gt;
MultiViewBlockDefinition mvbd = &lt;BR /&gt;
(MultiViewBlockDefinition)tr.GetObject(ent.StyleId, OpenMode.ForRead, true);&lt;BR /&gt;
&lt;BR /&gt;
I have been looking for documentation on .net programming with ACA, without &lt;BR /&gt;
doing a course where is a good starting point to learn the ways and styles of &lt;BR /&gt;
programming correctly in ACA. I have been programming for years but am currently &lt;BR /&gt;
doing a Microsoft course in C#.net &amp;amp; sql...... so starting to build up a &lt;BR /&gt;
programming platform, but there is alot of ACA specific stuff to learn.&lt;BR /&gt;
&lt;BR /&gt;
Chris&lt;/CHRIS.J.MCKEOWN&gt;</description>
      <pubDate>Sun, 03 Jan 2010 20:18:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-aec-databaseservices-multiviewblockreference/m-p/2610001#M67744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-03T20:18:41Z</dc:date>
    </item>
  </channel>
</rss>

