Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Selection Priority

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
677 Views, 2 Replies

Selection Priority


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
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous


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


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

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

Post to forums  

Autodesk Design & Make Report