I think I tried that but with no luck. I need to connect to ADTapp not ACAD
app.
how cad I get to the adt side of ACAD is the problem
so far i'm useing
Acad_app = Getobject(,"AutoCAD.Application")
Acad_doc = Acad_app.Activedocument............
some how if I could do some thing like....
ADT_app = Getobject(,"ADT.Application")
here's my code in VB.net, I tried it VB6 also with no luck(converted to vb6
lang of course)
all I want todo is get the style that are currently in the doc and have
access to adt specific stuff.
Imports AutoCAD
Imports AutoCAD_lib
Imports AecXUIArchBase
Imports AecXBase
Imports AecXArchBase
Imports AecXUIBase
Imports AXDBLib
Private Acad_Connecter As New AutoCADConnector_VB
Public WithEvents Acad_app As AcadApplication = Acad_Connecter.Application
Public WithEvents Acad_doc As AcadDocument = Acad_app.ActiveDocument
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
ListBox1.Items.Add(Acad_doc.Name)
Dim strStyles() As String
Dim bytX As Byte = 10
Dim ADTapp As AecArchBaseApplication
Dim ADTdoc As AecArchBaseDocument
Try
ADTdoc = Acad_app.ActiveDocument
Catch ex As Exception
MsgBox("Darn!")
End Try
End Sub
"Ed Jobe"
wrote in message
news:[email protected]...
> In that case, you are using the wrong approach. Just reference the
> appropriate type library you need. There are several that begin with
"AEC".
> Go to Tools>References.
>
> --
> Ed
> --
>
> "Andrew Elmore" wrote in message
> news:[email protected]...
> > I'm trying to get the ADT interface so that I can externally get the
wall
> > styles that are in that document and other ADT specific items. So I want
> to
> > get ADTapp and ADTdoc/s. I think this is the last major problem I'll
> > encounter before I write all the code for my program
> >
> > Thanks,
> > Andy Elmore
> >
> > "Ed Jobe" wrote in message
> > news:[email protected]...
> > > Which interface are you trying to obtain?
> > >
> > > --
> > > Ed
> > > --
> > >
> > > "Andy Elmore" wrote in message
> > > news:[email protected]...
> > > > I'm trying to use the GetInterFaceObject with no success
> > > >
> > > > I've tried the example given in the help files but that example does
> not
> > > > work either.
> > > >
> > > > Does anyone have an example of useing this method with ADT04, I
guess
> > the
> > > > help file with this example was wrote for ADT3.3
> > > >
> > > > Thanks,
> > > > Andy
> > > >
> > > >
> > >
> > >
> >
> >
>
>