Measure events api - Canceling command require an extra ESC

Measure events api - Canceling command require an extra ESC

CattabianiI
Collaborator Collaborator
553 Views
2 Replies
Message 1 of 3

Measure events api - Canceling command require an extra ESC

CattabianiI
Collaborator
Collaborator

I attacched a simple addin Using measure events API Sample

 

In VS 2015:

  1. Build the project
  2. Copy the .dll, .pdb and .addin in the proper location (something like: C:\Program Files\Autodesk\Inventor 2018\Bin; C:\ProgramData\Autodesk\Inventor 2018\Addins)
  3. Open an assembly with one standard part 
  4. Attach to Inventor process
  5. Set breakpoint in StandardAddInServer.vb at line 155: oInteractEvents.Stop()
  6. Go to the tools tab and click on the Test Measure command
  7. Select a face
  8. A: Press ESC key and the breakpoint is reached. B: Right click and click on Done [Esc]

On the B workflow Inventor is now in unwanted state with a persistant tooltip on the mouse pointer, the impossibility to select a part... and an extra ESC key is necessary to reach the breakpoint and get back to the proper state.

 

According to this workflow it seems a very little bug, but in my real case that extra ESC needed is infeasible.

0 Likes
554 Views
2 Replies
Replies (2)
Message 2 of 3

bradeneuropeArthur
Mentor
Mentor
Think you use the command measure via an add in command. This means you need two esc's to go back to the state. One for the add in command and one for the measure command.

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 3

CattabianiI
Collaborator
Collaborator

@bradeneuropewrote:
Think you use the command measure via an add in command. This means you need two esc's to go back to the state. One for the add in command and one for the measure command.

Where did you find this thing? 

Anyway it seems not true on my attached addin: one single Esc does the right job, the problem happens when I cancel the command thru right clicking and clicking on Done [Esc].

Please refer to the following screencast to see what I'm saying.

 

 

0 Likes