Inventor Customization

Reply
*Thompson, Ed
Message 1 of 13 (87 Views)

Is there an "on selecting document" command?

87 Views, 12 Replies
05-11-2003 05:01 PM
Ie. is it possible to detect when a new document is selected or loaded?
This would allow for the type of document tested, (ie. part, assembly,
drawing, etc.) so that appropriate "tools" can be made available.

Thanks,

EdT
*Keller, Kent
Message 2 of 13 (87 Views)

Re: Is there an "on selecting document" command?

05-12-2003 12:23 AM in reply to: *Thompson, Ed
Sounds like you need one or more of the Events such as OnActivate or onFileOpen.

--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program


"Ed Thompson" wrote in message
news:B58559EC81FFD4E282971BA15A6A0AC6@in.WebX.maYIadrTaRb...
> Ie. is it possible to detect when a new document is selected or loaded?
> This would allow for the type of document tested, (ie. part, assembly,
> drawing, etc.) so that appropriate "tools" can be made available.
>
> Thanks,
>
> EdT
>
>
*Thompson, Ed
Message 3 of 13 (87 Views)

Re:

05-12-2003 03:57 AM in reply to: *Thompson, Ed
Thanks Kent,

Looks like these are exactly what I was looking for. Do you know of any
examples that use these? It seems like most subs first check that a
document is of the correct "type" before a routine can continue, (probably
because they are stand alone samples). Has anyone used the "on select
document" to "allow" which tools and buttons are available for each type of
document? If so, does this approach work?

EdT



"Kent Keller" wrote in message
news:676E67A50B3BFF469546110B4BA2956A@in.WebX.maYIadrTaRb...
> Sounds like you need one or more of the Events such as OnActivate or
onFileOpen.
>
> --
> Kent
> Assistant Moderator
> Autodesk Discussion Forum Moderator Program
>
>
> "Ed Thompson" wrote in message
> news:B58559EC81FFD4E282971BA15A6A0AC6@in.WebX.maYIadrTaRb...
> > Ie. is it possible to detect when a new document is selected or loaded?
> > This would allow for the type of document tested, (ie. part, assembly,
> > drawing, etc.) so that appropriate "tools" can be made available.
> >
> > Thanks,
> >
> > EdT
> >
> >
>
>
*Keller, Kent
Message 4 of 13 (87 Views)

Re:

12-14-2003 09:46 AM in reply to: *Thompson, Ed
On 4-14-03 Brian Ekins posted a example of the OnAssemblyChange event with a subject
"OnAssemblyChanged Event Sample" Shouldn't be much difference in setting up the other
events I wouldn't think.

Doesn't the standard toolbar customization allow what you want already though? Right
click in a toolbar and choose Customize. Then in the first tab set up what toolbars are
shown in the various Environments.

--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program


"Ed Thompson" wrote in message
news:1C61D8E961A5202FB0369579265345DC@in.WebX.maYIadrTaRb...
> Thanks Kent,
>
> Looks like these are exactly what I was looking for. Do you know of any
> examples that use these? It seems like most subs first check that a
> document is of the correct "type" before a routine can continue, (probably
> because they are stand alone samples). Has anyone used the "on select
> document" to "allow" which tools and buttons are available for each type of
> document? If so, does this approach work?
>
> EdT
*Thompson, Ed
Message 5 of 13 (87 Views)

Re:

12-14-2003 09:46 AM in reply to: *Thompson, Ed
Kent,

I have been so busy trying to get the different "tools" to work, I haven't
thought much about adding my tools to the standard toolbars. So, far all I
have is a little VB form that floats around with lots of buttons on it. I
was thinking of "graying out" the buttons as would be appropriate. Is there
much of an advantage to place "tools" into the standard toolbar?

Ed

"Kent Keller" wrote in message
news:8EB4C7A12E29103ED1FA349186F09DD2@in.WebX.maYIadrTaRb...
> On 4-14-03 Brian Ekins posted a example of the OnAssemblyChange event with
a subject
> "OnAssemblyChanged Event Sample" Shouldn't be much difference in setting
up the other
> events I wouldn't think.
>
> Doesn't the standard toolbar customization allow what you want already
though? Right
> click in a toolbar and choose Customize. Then in the first tab set up
what toolbars are
> shown in the various Environments.
>
> --
> Kent
> Assistant Moderator
> Autodesk Discussion Forum Moderator Program
>
>
> "Ed Thompson" wrote in message
> news:1C61D8E961A5202FB0369579265345DC@in.WebX.maYIadrTaRb...
> > Thanks Kent,
> >
> > Looks like these are exactly what I was looking for. Do you know of any
> > examples that use these? It seems like most subs first check that a
> > document is of the correct "type" before a routine can continue,
(probably
> > because they are stand alone samples). Has anyone used the "on select
> > document" to "allow" which tools and buttons are available for each type
of
> > document? If so, does this approach work?
> >
> > EdT
>
>
*Thompson, Ed
Message 5 of 13 (87 Views)

Re:

12-14-2003 09:46 AM in reply to: *Thompson, Ed
Kent,

Which news group is this on. I tried this one and can't seem to find the
entry. I searched for the date, the person and the topic.

Thanks,

Ed


"Kent Keller" wrote in message
news:8EB4C7A12E29103ED1FA349186F09DD2@in.WebX.maYIadrTaRb...
> On 4-14-03 Brian Ekins posted a example of the OnAssemblyChange event with
a subject
> "OnAssemblyChanged Event Sample" Shouldn't be much difference in setting
up the other
> events I wouldn't think.
>
> Doesn't the standard toolbar customization allow what you want already
though? Right
> click in a toolbar and choose Customize. Then in the first tab set up
what toolbars are
> shown in the various Environments.
>
> --
> Kent
> Assistant Moderator
> Autodesk Discussion Forum Moderator Program
>
>
> "Ed Thompson" wrote in message
> news:1C61D8E961A5202FB0369579265345DC@in.WebX.maYIadrTaRb...
> > Thanks Kent,
> >
> > Looks like these are exactly what I was looking for. Do you know of any
> > examples that use these? It seems like most subs first check that a
> > document is of the correct "type" before a routine can continue,
(probably
> > because they are stand alone samples). Has anyone used the "on select
> > document" to "allow" which tools and buttons are available for each type
of
> > document? If so, does this approach work?
> >
> > EdT
>
>
*Brown, Anne
Message 7 of 13 (87 Views)

Re:

12-14-2003 09:46 AM in reply to: *Thompson, Ed
Ed -

I had a hard time finding it also! Brian posted under the name of
"Autodesk" which is why a search by his name didn't show up the
file. It is in Customer Files with the information as below.


Topic: OnAssemblyChanged Event Sample Message: 1 of 1

From: Autodesk\
Date: Apr/14/03 - 21:23 (GMT)
Sample for Inventor's API OnAssemblyChanged event.

Attachments: AsmChanged.zip

---
Anne Brown
Manager, Moderator
Autodesk Product Support Discussion Groups
Discussion Q&A: http://www.autodesk.com/discussion



Ed Thompson wrote:
>
> Kent,
>
> Which news group is this on. I tried this one and can't seem to find the
> entry. I searched for the date, the person and the topic.
*Keller, Kent
Message 8 of 13 (87 Views)

Re:

12-14-2003 09:46 AM in reply to: *Thompson, Ed
Sorry about that, should have said which group it was in 8^)

--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program


"Anne Brown" wrote in message
news:3EC0EA8C.1947DFF7@autodesk.com...
> Ed -
>
> I had a hard time finding it also! Brian posted under the name of
>
> Ed Thompson wrote:
> >
> > Kent,
> >
> > Which news group is this on.
*Thompson, Ed
Message 8 of 13 (87 Views)

Re:

12-14-2003 09:46 AM in reply to: *Thompson, Ed
I have tried to reset and to renown load but I can't seem to get any files
before 4/21/03 for the "inventor"customer-files"? Any idea what I am
missing.... I just can't seem to find this file

EdT


"Anne Brown" wrote in message
news:3EC0EA8C.1947DFF7@autodesk.com...
> Ed -
>
> I had a hard time finding it also! Brian posted under the name of
> "Autodesk" which is why a search by his name didn't show up the
> file. It is in Customer Files with the information as below.
>
>
> Topic: OnAssemblyChanged Event Sample Message: 1 of 1
>
> From: Autodesk\
> Date: Apr/14/03 - 21:23 (GMT)
> Sample for Inventor's API OnAssemblyChanged event.
>
> Attachments: AsmChanged.zip
>
> ---
> Anne Brown
> Manager, Moderator
> Autodesk Product Support Discussion Groups
> Discussion Q&A: http://www.autodesk.com/discussion
>
>
>
> Ed Thompson wrote:
> >
> > Kent,
> >
> > Which news group is this on. I tried this one and can't seem to find
the
> > entry. I searched for the date, the person and the topic.
*Brown, Anne
Message 10 of 13 (87 Views)

Re:

12-14-2003 09:46 AM in reply to: *Thompson, Ed
Well if Kent or I would be more specific, it would help you a lot
<--a grin Kent!

It is in the general Customer Files, not in the new one
specifically for Inventor.

CUSTOMER-FILES
Customer Files (CF) is an area for upload of problem files for
review or sharing. Users are asked to zip any files prior to
uploading to conserve download time and server space.

For NNTP newsgroup readers the Customer-files newsgroup can be
found at
news://discussion.autodesk.com/autodesk.autocad.customer-files.

You may also access the customer-files group via the HTTP
web-based forums at
http://discussion.autodesk.com/WebX?14@@.ee940b5.
--
Anne Brown
Manager, Moderator
Autodesk Product Support Discussion Groups
Discussion Q&A: http://www.autodesk.com/discussion


Ed Thompson wrote:
>
> I have tried to reset and to renown load but I can't seem to get any files
> before 4/21/03 for the "inventor"customer-files"? Any idea what I am
> missing.... I just can't seem to find this file

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube