Could you help me trace a bug?

Could you help me trace a bug?

Anonymous
Not applicable
310 Views
2 Replies
Message 1 of 3

Could you help me trace a bug?

Anonymous
Not applicable

Hi,

I would use help of someone who is familiar with creating adins and/or macros for inventor and I hope to find someone on this forum.

 

The thing is:

There is some kind of bug in inventor that randomly turns off "Place and ground first component at origin" setting made in application options.

 

I have been trying to chatch what is causing this, and had recorded hours of screencast videos but I did not get closer to catching this bug, although I happened several times.

 

Problem is that it is extremely hard to constantly check if this setting did not get switched off, and without checking it impossible to trace the exact moment it gets changed.

 

So I thought that maybe it is possible for someone to write a simple adin or macro that could run in background and check state of "Place and ground first component at origin" setting  and indicate it by a simple "green/red light" on a small windows form.

 

This way, I home, I could notice the exact moment when this setting gets switched off.

 

This task is beyond my current skills in VB.

Can I count on your help?

 

Cris.

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

xiaodong_liang
Autodesk Support
Autodesk Support

Hi,

 

The way to monitor the change of an object/property is to take advantage of the corresponding event. In this case, the best one is: ApplicationEvents.OnApplicationOptionChange. It does not tell which option is changed, but we can check if the specific option  value (AssemblyOption.XXX) is changed or not by comparing with the last value (say you have made a record before).

 

The problem to me is: I did not find the corresponding property for ‘Place and ground first part at origin’ with AssemblyOption. I will have to check further.

 

In the same time, I’d suggest you could check the steps how the option will change automatically. I would agree it might be an issue. It will much better to diagnose the reason than we monitor the option changing.

0 Likes
Message 3 of 3

xiaodong_liang
Autodesk Support
Autodesk Support
I got confirmation that there is not API to Get/Set Place and ground first part at origin’. That means the way of monitor is useless. Sorry if this is bad news to you. I logged a wish to ask for exposing the API for 'Place and ground first part at origin’

#117803

at this moment, you will have to check what cased the problem 'this option changed' . So, it is better to post the question to product board.
https://forums.autodesk.com/t5/inventor-general-discussion/bd-p/78
0 Likes