Inventor Customization

Inventor Customization

Reply
Contributor
RPdAnjou
Posts: 33
Registered: ‎06-06-2011
Message 1 of 5 (268 Views)

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

268 Views, 4 Replies
08-09-2012 01:39 AM

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.

Valued Mentor
jcneal
Posts: 339
Registered: ‎04-10-2010
Message 2 of 5 (252 Views)

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

08-13-2012 10:47 AM 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 2014
Autodesk Product Design Suite Standard 2014
Microsoft Office 2007 & 2013
Windows 7 64bit
Synergis Adept 2014
Visual Studio Express 2010
Contributor
RPdAnjou
Posts: 33
Registered: ‎06-06-2011
Message 3 of 5 (249 Views)

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

08-13-2012 01:19 PM in reply to: RPdAnjou

Thanks for the obvious solution!

Will try that.

 

Some times you just don't see the simple solutions :smileyindifferent:

Contributor
RPdAnjou
Posts: 33
Registered: ‎06-06-2011
Message 4 of 5 (231 Views)

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

08-16-2012 06:34 AM in reply to: jcneal

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.

ADN Support Specialist
Vladimir.Ananyev
Posts: 514
Registered: ‎08-14-2012
Message 5 of 5 (206 Views)

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

08-22-2012 04:45 AM 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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!