VB.Net - How do I determine whether a Positional Representation is failing?

VB.Net - How do I determine whether a Positional Representation is failing?

Anonymous
Not applicable
695 Views
4 Replies
Message 1 of 5

VB.Net - How do I determine whether a Positional Representation is failing?

Anonymous
Not applicable

Hi,

 

I'm looping trough positional representations in a assembly and I would like to determine if one of them is failing.

Can some one give me a nice hint on a solution?

 

Thanks.

0 Likes
696 Views
4 Replies
Replies (4)
Message 2 of 5

skyngu
Collaborator
Collaborator

loop through all positional representations and activate each. fail = error

see if it helps.

 

on error resume next

if err then

err clear

counter = counter +1

end if

Autodesk Inventor Professional 2019
0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks for the obvious solution!

Will try that.

 

Some times you just don't see the simple solutions Smiley Indifferent

0 Likes
Message 4 of 5

Anonymous
Not applicable

Well, I tried the solution but this will not give me the right result.

This is because the positional representation does activate correctly but has errors.

 

So now the question is more like: How do I determine whether a positional representation has errors?

 

Well, I did find a half solution and don't know whether there is a better one.

For now, I activate each positional representation and then search for failing constraints.

When one fails, I know the positional representation also fails.

0 Likes
Message 5 of 5

Vladimir.Ananyev
Alumni
Alumni

There is no API for this task. Your workaround is a good idea.

Cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes