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: 

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

4 REPLIES 4
Reply
Message 1 of 5
RPdAnjou
461 Views, 4 Replies

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

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.

4 REPLIES 4
Message 2 of 5
skyngu
in reply to: RPdAnjou

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

Thanks for the obvious solution!

Will try that.

 

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

Message 4 of 5
RPdAnjou
in reply to: skyngu

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.

Message 5 of 5
Vladimir.Ananyev
in reply to: RPdAnjou

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

Cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk Design & Make Report