Rob:
I am having problems in the office as well. I have created very simple
stuff in VBA but since we have both ADT3 and ADT 33 (my computer as
well)
I crated a VBA routine, but it wont work in ADT3. It give project not
found or something.
so how did you figure out to create a routine that would work for
both???
thanks
I am talking simple as this. This works great on my computer, but not on
ADT3 computers...
what are you takling about compile??? and if so how do you access it
from
(vl-vbarun "C:\\myfile.dvb!MyMod.NAE_SetOurStd)
Sub NAE_SetOurLyrStd ()
Dim aecDb As New AecArchBaseDatabase ' declare and assign an aecArch
Database
aecDb.Init ThisDrawing.Database ' initialise our arch database
fromtheActive drawing
Set dbPref = aecDb.Preferences ' assign the preferences
object(objects are assigned using the syntax "Set var = otherObj"
Dim laystandard As String
'laystandard = dbPref.LayerStandard
dbPref.LayerStandard = "NAE Layer Standard"
laystandard = dbPref.LayerStandard
'MsgBox "The current value for LayerStandard is: " & laystandard, _
vbInformation, "LayerStandard Example"
End Sub
Rob Starz wrote:
>
> Peter,
>
> To help people in understanding how to Reference the proper reference in
> VB/VBA can you give a description of what is under each possible reference
> (not too detailed).
>
> Aec Architectural 3.0 Application Library
> Aec Architectural 3.0 Object Library
> Aec Base 3.0 Application Library
> Aec Base 3.O Object Library
> Aec D\A\CH Base 3.O Object Library
> Aec DcContent 3.O Type Library
>
> the rest are self explanitory in there name (ie. Area, Structural)
>
> I think this would help people understand what they need to reference and
> where they may find libraries to help program for what they are looking for.
>
> (ie. For AecDimensions I had to do trial and error to figure out Aec D\A\CH
> Base 3.O Object Library contained the library to access AecDims)
>
> If you had a quick reference document this would help myself and others
> greatly. I would probably frame it. I know I could reference the file and
> see what is available in the Object Browser but you can't print it.
>
> TIA
>
> --
> -------------------------------------------------------------------------
> Rob Starz
> Plogv 3.0 & 2000 (plot logging) for r14 & 2000
> ***Enhancement Tools for Arch. Desktop *****
> !!!! DormerX out in Sept !!!!
> http://www.stardsign.com/main.htm
> "Peter Funk - Autodesk, Inc"
wrote in message
> news:520101BB00620B65C2E42173AB73EDD8@in.WebX.maYIadrTaRb...
> > Thank You Rob!!!
> >
> > Jim, Nauman, I echo Rob's suggestion that you look towards VB/VBA instead
> of
> > devoting a lot of time to this method. ADT's ActiveX interface is spread
> > across a number (6+) of interrelated type libraries, that may not work
> well
> > in a VisualLISP environment.
> >
> > I know that leaving the comfort of AutoLISP is hard, but after moving a
> > number of hard-core LISP developers (myself, Rob S, John J, Tony T) to
> VBA,
> > I feel confident that you will find new joy in programming, and use the
> > power of VBA/VB to develop some great new tools.
> >
> > Cheers,
> >
> > Peter Funk
> > API Product Manager
> > Building Industry Division
> > Autodesk, Inc.
> >
> > "Rob Starz" wrote in message
> > news:DEAD4D11EB4AC63777BFDE9589DAF82F@in.WebX.maYIadrTaRb...
> > > As much as I would love to put the time in to help you...it is much to
> > easy
> > > in VB to even go there. You will have so much more success and error
> > > trapping in VB. I have jumped up to creating DLL to hold my dialogs and
> > > functions due to this.
> > > Good Luck
> > >
> > > --
> >
> >
--
-------------------
Nauman M
CAD Bazaar
*********NEW*********
Add AEC Objects to the Layers(lkey) you want, not the Layers ADT Wants!!
Add a Wall directly on the DEMO Layerkey, instead of switching it later.
Download the eval at http://www.cadbazaar.com
*********NEW*********
Need to easily Navigate to your Custom Content Folders?
Need Autolayering for Dimensions without going through Design Center?
Download the ADT Tools for ADT 2 & 3 at
http://www.cadbazaar.com