Message 1 of 5
Replace command tool from the Assembly Panel

Not applicable
02-06-2009
11:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Vb.net 2008
Inventor 2009
Background:
In an assembly, I am capturing the "Replace" command in the
OnFileInsertDialog event of the File Events.
When a user has a part selected and clicks the "Replace" command tool from
the Assembly Panel, the OnFileInsertDialog event fires and everything works
as expected. The "ActiveDocument.SelectSet" has a reference to the selected
part in the OnFileInsertDialog event.
Problem/question:
If the user does not have a part selected and then clicks the "Replace"
command tool they are prompted to select a part and then the
OnFileInsertDialog event fires. However, when the event fires the
"ActiveDocument.SelectSet" does not have any reference at all.
Why is the "ActiveDocument.SelectSet.Count" = 0 after the user has been
prompted to and has selected a part during the "Replace"?
Inventor 2009
Background:
In an assembly, I am capturing the "Replace" command in the
OnFileInsertDialog event of the File Events.
When a user has a part selected and clicks the "Replace" command tool from
the Assembly Panel, the OnFileInsertDialog event fires and everything works
as expected. The "ActiveDocument.SelectSet" has a reference to the selected
part in the OnFileInsertDialog event.
Problem/question:
If the user does not have a part selected and then clicks the "Replace"
command tool they are prompted to select a part and then the
OnFileInsertDialog event fires. However, when the event fires the
"ActiveDocument.SelectSet" does not have any reference at all.
Why is the "ActiveDocument.SelectSet.Count" = 0 after the user has been
prompted to and has selected a part during the "Replace"?