AutoCAD Architecture Customization
Welcome to Autodesk’s AutoCAD Architecture Customization Forums. Share your knowledge, ask questions, and explore popular AutoCAD Architecture Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AecArchBaseDoc via Vlisp

31 REPLIES 31
Reply
Message 1 of 32
jbuzbee
745 Views, 31 Replies

AecArchBaseDoc via Vlisp

With the AutoDESK server being down (? - slow?) I've decided to repost this - so sorry for the redundancy. I was wondering if anyone had a chance to play around with it - I'm anxious to get to the AecDataBaseScale object . . . From an earlier post: "Look for "AecArchBaseDocument" in "Customer Files". It contains an example; "AecUtil.lsp", which can be used in place of (vla-get-activedocument(vlac-get-acad-object)) for accessing the AecArchBaseDoc. I've included a number of comments to explain what I've done and so forth. What we could all do to expand this code would be configuration checking for multiple versions and platforms. The example works for ADT 3 with a sloght modification to work on ADT 3.3. If any of you have time to download it and check it out I would appreciate any feedback!! James Buzbee"
31 REPLIES 31
Message 2 of 32
Anonymous
in reply to: jbuzbee

hey jb comes through with the answer . ActiveX-VlispAccess... yeah!!
I downloaded it , but will try it out tomorrow..
whats the work around for 3.3? is it the tlb file?
thanks

jbuzbee wrote:
>
> With the AutoDESK server being down (? - slow?) I've decided to repost
> this - so sorry for the redundancy. I was wondering if anyone had a
> chance to play around with it - I'm anxious to get to the
> AecDataBaseScale object . . . From an earlier post: "Look for
> "AecArchBaseDocument" in "Customer Files". It contains an example;
> "AecUtil.lsp", which can be used in place of
> (vla-get-activedocument(vlac-get-acad-object)) for accessing the
> AecArchBaseDoc. I've included a number of comments to explain what
> I've done and so forth. What we could all do to expand this code would
> be configuration checking for multiple versions and platforms. The
> example works for ADT 3 with a sloght modification to work on ADT 3.3.
> If any of you have time to download it and check it out I would
> appreciate any feedback!! James Buzbee"

--

-------------------
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
Message 3 of 32
jbuzbee
in reply to: jbuzbee

I've just opened the door a small crack, the da** thing needs to be kicked in! Yes, the type library changed for 3.3. I'm also having problems accessing the AecPreferences object, the AecObject model is split into AecBase and AecArchBase. Some objects, like LayerKeyStyles, are controlled by AecBase while others, like Walls and Doors, are controlled by AecArchBase. If I try to import both the AecXBase30.tlb and AecXArchBase30.tlb, using unique prefixes of course, I get a protected symbol warning. I'm in uncharted, and very dangerous, waters here - I could really use some help from someone with more experience. Any help will be appreciated! James Buzbee
Message 4 of 32
Anonymous
in reply to: jbuzbee

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

--
-------------------------------------------------------------------------
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
"jbuzbee" wrote in message
news:f079070.1@WebX.maYIadrTaRb...
> I've just opened the door a small crack, the da** thing needs to be kicked
in! Yes, the type library changed for 3.3. I'm also having problems
accessing the AecPreferences object, the AecObject model is split into
AecBase and AecArchBase. Some objects, like LayerKeyStyles, are controlled
by AecBase while others, like Walls and Doors, are controlled by
AecArchBase. If I try to import both the AecXBase30.tlb and
AecXArchBase30.tlb, using unique prefixes of course, I get a protected
symbol warning. I'm in uncharted, and very dangerous, waters here - I could
really use some help from someone with more experience. Any help will be
appreciated! James Buzbee
>
Message 5 of 32
Anonymous
in reply to: jbuzbee

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
>
> --
Message 6 of 32
Anonymous
in reply to: jbuzbee

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
> >
> > --
>
>
Message 7 of 32
jbuzbee
in reply to: jbuzbee

Peter, I was afraid of that. You and Rob are correct about the move to VBA. But I just got to the point where I feel REALLY confident in AutoLISP! I've become so much more efficient not having to learn as I go ( oh, don't worry, I know you never stop learning! ) It's just that whole start-up thing learning the new language. The bright side is I'm 95% complete with my base AutoCAD customization ( in LISP of course ) and I can really devote some time to learning VBA. Also working extensively with ActiveX over the last year I think has prepared me for the "logical" shift from AutoLISP to VBA. OK, you guys have opened the door; so be prepared for many, many, many questions . . .. jb
Message 8 of 32
Anonymous
in reply to: jbuzbee

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
Message 9 of 32
Anonymous
in reply to: jbuzbee

jb,

 

If you can handle AutoLISP with ActiveX, then VBA
will be a walk in the park, especially if you have made that logical shift
already. One of the best features of VBA is how (if you "Dim" your variables
before you use them) is that the interface will walk you through writing the
code. Also, have a good VBA reference manual close by to help with the new
syntax: x = 1 + 1 vs. (setq x 1 1). After your first dialog, you will never look
back.

 

Cheers,

 

Peter Funk

API Product Manager

Building Industry Division

Autodesk, Inc

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Peter,
I was afraid of that. You and Rob are correct about the move to VBA. But I
just got to the point where I feel REALLY confident in AutoLISP! I've become
so much more efficient not having to learn as I go ( oh, don't worry, I know
you never stop learning! ) It's just that whole start-up thing learning the
new language. The bright side is I'm 95% complete with my base AutoCAD
customization ( in LISP of course ) and I can really devote some time to
learning VBA. Also working extensively with ActiveX over the last year I think
has prepared me for the "logical" shift from AutoLISP to VBA. OK, you guys
have opened the door; so be prepared for many, many, many questions . . ..
jb
Message 10 of 32
Anonymous
in reply to: jbuzbee

Rob,

If you are looking for "art" work, print the "Object Model" charts located
in each of the help files. These show the object hierarchy of all the
exposed objects. The basic break down is that the Application type libraries
contain the applications/document stuff, and the object libraries contain
the objects. For the Application/Object libraries, always select the pair.

If you use the Architectural type libraries, then you need to reference the
Base libraries as well. NOTE: The architectural preferences and document
objects contain all the methods and properties of the AecBase objects, i.e.
the architectural base document can return the MVBlockStyles Collection as
well as WallStyles collection. The same applies to the preferences objects.

AecBase Application
BaseApplication
BasePreferences
BaseDocument

AecBase Objects
Layout Grids
Layout Curves
Mass Elements
MVBlocks
Styles and Style Collections (the collections are returned from the
BaseDocument)
etc.

ArchBaseApplication
Application
Preferences
Document

ArchBase Objects
architectural objects (walls, doors, windows
Architectural Styles and Style Collections (the collections are returned
from the BaseDocument)

Aec D\A\CH Base
Aec Dimensions and Dimension styles. Nothing useful has been exposed
with these objects for ADT 3.3.

AecDcContent
Used by the Design Center within ADT. Do not use for ActiveX
development.


Hope this helps,

Peter Funk
API Product Manager
Building Industry Division
Autodesk, Inc.
Message 11 of 32
Anonymous
in reply to: jbuzbee

Nauman,

You need to make sure that the routine only references the 3.0 type
libraries. Type libraries can go forward, but not backwards. A simple way to
do this would be to make the project on you machine. Once it is up and
running, transfer it to a machine with 3.0. Then open up the project in the
editor, and remove all the AEC Type libraries. Save the project. Add back
all the type libraries. Save the project and run it. You should now have a
version of the code that will run on both 3.0 and 3.3.

NOTE: You can't use any feature of the 3.3 type libraries in your
applications and have them work in both 3.3 and 3.0. This would include the
ability to create and attach property set data to an object.

The other way would be to upgrade everyone to 3.3 (I had to say that, I'm in
Marketing).

Cheers,

Peter Funk
API Product Manager
Building Industry Division
Autodesk, Inc.


"Nauman M" wrote in message
news:3B8E4F58.E35ECC5C@email.com...
> 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
Message 12 of 32
Anonymous
in reply to: jbuzbee

that helps. thanks

--
-------------------------------------------------------------------------
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:F5CCBACCB9F5F09E54D7D66737E4467C@in.WebX.maYIadrTaRb...
> Rob,
>
> If you are looking for "art" work, print the "Object Model" charts located
> in each of the help files. These show the object hierarchy of all the
> exposed objects. The basic break down is that the Application type
libraries
> contain the applications/document stuff, and the object libraries contain
> the objects. For the Application/Object libraries, always select the pair.
>
> If you use the Architectural type libraries, then you need to reference
the
> Base libraries as well. NOTE: The architectural preferences and document
> objects contain all the methods and properties of the AecBase objects,
i.e.
> the architectural base document can return the MVBlockStyles Collection as
> well as WallStyles collection. The same applies to the preferences
objects.
>
> AecBase Application
> BaseApplication
> BasePreferences
> BaseDocument
>
> AecBase Objects
> Layout Grids
> Layout Curves
> Mass Elements
> MVBlocks
> Styles and Style Collections (the collections are returned from the
> BaseDocument)
> etc.
>
> ArchBaseApplication
> Application
> Preferences
> Document
>
> ArchBase Objects
> architectural objects (walls, doors, windows
> Architectural Styles and Style Collections (the collections are
returned
> from the BaseDocument)
>
> Aec D\A\CH Base
> Aec Dimensions and Dimension styles. Nothing useful has been exposed
> with these objects for ADT 3.3.
>
> AecDcContent
> Used by the Design Center within ADT. Do not use for ActiveX
> development.
>
>
> Hope this helps,
>
> Peter Funk
> API Product Manager
> Building Industry Division
> Autodesk, Inc.
>
>
Message 13 of 32
Anonymous
in reply to: jbuzbee

We should have a meeting at AU for all the ex-AutoLISP'er who have kicked
the habit.

Cheers,

Peter
Message 14 of 32
Anonymous
in reply to: jbuzbee

Easily said....Can we talk about something called Software Piracy here!!!!

In order for me to open my saved project in 3.0 I need another machine that
has VB....not VBA. I am not dishing out another 699 for another license of
VB and studio. This concept works great for someone who is only working in
VBA but not for VB.

I honestly don't know why with 3.3 there wasn't created another version of
the TLBs. I understand not much was changed but enough was changed to
warrent the 3.0 TLBs installed with 3.3 to cause errors when run in 3.0.

If I may request....can we change names of references with versions so I
don't need a bank of computers so I can save my programs for my clients in
earlier versions. I should be able to compile all my programs from one
version and just select the version TLB file that suites the version I want
to compile for. Atleast with Microsofts updated controls you can download
and install them to your computer. Once 3.3 is on the system I can't update
or overwrite it or else I risk my clients lossing some 3.3 functionality.

Sorry...but I will complain about this till it is fixed. In the next patch
for 3.3 this should be fixed. This is completely irresponsible of Autodesk
to do especially to people who there are people trying to make some sort of
living from this. Standards must be set and kept.

PS. What is AecStructural 3.1 Object Library ...why use 3.1....this
utterly baffles me.


--
-------------------------------------------------------------------------
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
Message 15 of 32
Anonymous
in reply to: jbuzbee

yeah but then Lynn Allen with come along and temp us to jump off the wagon.



--
-------------------------------------------------------------------------
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:51C57A45A87FA27A5746461794765C74@in.WebX.maYIadrTaRb...
> We should have a meeting at AU for all the ex-AutoLISP'er who have kicked
> the habit.
>
> Cheers,
>
> Peter
>
>
Message 16 of 32
Anonymous
in reply to: jbuzbee

thanks for the info. rreagrding VBA.

Oh we are on VIP so I have all the boxes stacked, it is just that 2002
/adt3.3 is does not have anything that would want me to take my time and
upgrade everyone. plus we just upgraded in feb so they are not going to
be too happy with that as well.



"Peter Funk - Autodesk, Inc" wrote:
>
> Nauman,
>
> You need to make sure that the routine only references the 3.0 type
> libraries. Type libraries can go forward, but not backwards. A simple way to
> do this would be to make the project on you machine. Once it is up and
> running, transfer it to a machine with 3.0. Then open up the project in the
> editor, and remove all the AEC Type libraries. Save the project. Add back
> all the type libraries. Save the project and run it. You should now have a
> version of the code that will run on both 3.0 and 3.3.
>
> NOTE: You can't use any feature of the 3.3 type libraries in your
> applications and have them work in both 3.3 and 3.0. This would include the
> ability to create and attach property set data to an object.
>
> The other way would be to upgrade everyone to 3.3 (I had to say that, I'm in
> Marketing).
>
> Cheers,
>
> Peter Funk
> API Product Manager
> Building Industry Division
> Autodesk, Inc.
>
> "Nauman M" wrote in message
> news:3B8E4F58.E35ECC5C@email.com...
> > 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

--

-------------------
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
Message 17 of 32
Anonymous
in reply to: jbuzbee

I have told all clients not to upgrade since there is no justification in
the time and money for the setup. I had one distributor call me asking me
why I adimatly told my previous office not to update. They want the MONEY
to install it all. I asked him to give me one explanation as to why they
should upgrade. Everything this is needed works the same. I don't think
the core upgrade is worth it either. From the "Whats New" section in the
help file

Associative Dimensioning
Attribute Management Tools
Layer Management Tools

WOW.... Waist of money to me since I don't use any of them. I have A2k/3.3
installed to program for items exposed in ADT3.3.......

After my uproar with him...he kindly conceeded that there is no reason to
coerce my prev. office to update.

--
-------------------------------------------------------------------------
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
Message 18 of 32
Anonymous
in reply to: jbuzbee

Exactly , there is NOTHING in there to UPGRADE for .... Really. We are
in the VIP program - which is good only for upgrades as I have not seen
any thing useful out of it yet.
Also I have VIP PLUS on 2 copies. well guess what. I call them up and
ask them the question, and well into it, they ask me, have you tried
posting it to the NG... I know I get the answers from the NG , but I
just call them from time to time, just to get my moneys worth. This was
grandfathered in before I came here, and I will be discontinuing it at
renewal.


Rob Starz wrote:
>
> I have told all clients not to upgrade since there is no justification in
> the time and money for the setup. I had one distributor call me asking me
> why I adimatly told my previous office not to update. They want the MONEY
> to install it all. I asked him to give me one explanation as to why they
> should upgrade. Everything this is needed works the same. I don't think
> the core upgrade is worth it either. From the "Whats New" section in the
> help file
>
> Associative Dimensioning
> Attribute Management Tools
> Layer Management Tools
>
> WOW.... Waist of money to me since I don't use any of them. I have A2k/3.3
> installed to program for items exposed in ADT3.3.......
>
> After my uproar with him...he kindly conceeded that there is no reason to
> coerce my prev. office to update.
>
> --
> -------------------------------------------------------------------------
> 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

--

-------------------
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
Message 19 of 32
Anonymous
in reply to: jbuzbee

I'll invite her to join us. I'd love to hear her try to seduce you with the
flexibility of DCL, the logic of + 1 1, and the simplicity of ()'s!

Cheers,

Peter

"Rob Starz" wrote in message
news:CDB1816D9B68D3D7D6AFF6F32694C76E@in.WebX.maYIadrTaRb...
> yeah but then Lynn Allen with come along and temp us to jump off the
wagon.
>
Message 20 of 32
Anonymous
in reply to: jbuzbee

LOL

--
-------------------------------------------------------------------------
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost