Selection Priority

Selection Priority

Anonymous
Not applicable
716 Views
2 Replies
Message 1 of 3

Selection Priority

Anonymous
Not applicable

I have an addin that during runtime
changes my selection priority to edge select. I am not sure why it changes. I
want to set it back to  component selection priority upon exiting bu
cant seem to get to work. Does anyone know how to make this happen. This is what
I have but it does not work.

 

Dim oSelect As SelectTypeEnum
Set oSelect =
inventor.SelectionPriorityEnum.kComponentSelectionPriority

 

Scott A. McCoy
0 Likes
717 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

I don't know why your selection priority is
changing.  I haven't ever seen, or at least noticed, that behavior
before.  To set the selection priority you need to use the
SelectionPriority property of the document.

 

Dim oDoc As Document

Set oDoc =
ThisApplication.ActiveDocument

oDoc.SelectionPriority =
kComponentSelectionPriority

--
Brian Ekins
Autodesk Inventor
API
0 Likes
Message 3 of 3

Anonymous
Not applicable

Brian, Thank you that took care of my
problem.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">


I don't know why your selection priority is
changing.  I haven't ever seen, or at least noticed, that behavior
before.  To set the selection priority you need to use the
SelectionPriority property of the document.

 

Dim oDoc As Document

Set oDoc =
ThisApplication.ActiveDocument

oDoc.SelectionPriority =
kComponentSelectionPriority

--
Brian Ekins
Autodesk Inventor
API
0 Likes