Event catching: custom table edit

Event catching: custom table edit

Jef_E
Collaborator Collaborator
373 Views
3 Replies
Message 1 of 4

Event catching: custom table edit

Jef_E
Collaborator
Collaborator

Hi,

 

I have a custom table that is made based on property values from code. I would like to prevent the user to edit the table by hand, and redirect him/her to the desired windows form to populate the custom table;

 

I tried watching the events using the event watcher but nothing usefull came out. only the following events are flagged

  • DocumentEvents.OnChangeSelectSet
  • UserInputEvents.OnDoubleClick

But there is no event that specifies the editing of a custom table; can someone help me catching the event to prevent the user to manual overwrite the table values.

 

I could work with the double click event but that still allows the user to right click and edit the custom table..



Please kudo if this post was helpfull
Please accept as solution if your problem was solved

Inventor 2014 SP2
0 Likes
374 Views
3 Replies
Replies (3)
Message 2 of 4

BrandonBG
Collaborator
Collaborator

I dug through the API help, and found the Cell.Static property. I'm not exactly sure what the status indicates, but it may be useful to monitor.

 

If Cell.Static Is True

Then CustomTable.Update()

 

or something.

 

Brandon

0 Likes
Message 3 of 4

Jef_E
Collaborator
Collaborator

Not entirely, you are looking at a specific cell if the value is static.

 

I want to monitor if a custom table is being opened and based on some attribute or name deny the user access..



Please kudo if this post was helpfull
Please accept as solution if your problem was solved

Inventor 2014 SP2
0 Likes
Message 4 of 4

BrandonBG
Collaborator
Collaborator

What about UserInputEvents.OnSelect? I believe this can handle a left or right mouse click or a browser select.

 

Brandon

0 Likes