Chris - You should probably focus more on C# and .NET
fundamentals before trying to extensively learn ACA, as the
former is a prerequisite to the latter.
For example, the code you show below calls GetObject() to
open an object that's already open. The DBObject passed
into the event handler is the MultiViewBlockReference, and
as I mentioned previously, you have to cast it to that type.
So, in terms of C# language concepts you're missing a few
very basic ones, namely how base classes and derived classes
relate to each other, (e.g., MultiViewBlockReference is derived
from DBObject), and how to cast an instance of a base type to
an instance of a derived type:
DBObject obj = e.DBObject // e is the ObjectModified event args:
MultiViewBlockReference mvblockRef = obj as MultiViewBlockReference;
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6311332@discussion.autodesk.com...
Hi Tony, I have found how to access the MultiViewBlockDefinition from the
MultiViewBlockReference via the StyleId
MultiViewBlockReference ent =
(MultiViewBlockReference)tr.GetObject(Obj.ObjectId, OpenMode.ForRead, true);
MultiViewBlockDefinition mvbd =
(MultiViewBlockDefinition)tr.GetObject(ent.StyleId, OpenMode.ForRead, true);
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 & sql...... so starting to build up a
programming platform, but there is alot of ACA specific stuff to learn.
Chris