Read AutoLimit values

Read AutoLimit values

nannerdw
Advocate Advocate
588 Views
4 Replies
Message 1 of 5

Read AutoLimit values

nannerdw
Advocate
Advocate

Is it possible to read the value of an AutoLimit through the API in Inventor 2012?

I can't find anything about it in the object model.

589 Views
4 Replies
Replies (4)
Message 2 of 5

brian.crow
Explorer
Explorer

Bump.

 

Although this is an old thread I am also in need of a solution to reading/exporting autolimits. I am trying to monitor the area of multiple faces, if I could include the measurement of a limit in the parameter table that would be ideal.

Message 3 of 5

J-Camper
Advisor
Advisor

I don't think there is really an API method for "AutoLimits" but you can create a simple local iLogic rule like the following:

Trigger = test

If Parameter("test") > 30 in Then Logger.Debug("max is 30 in") : Parameter("test") = 30 in

 

To Test add a numeric parameter named "test" and try to change the value above 30 in.  It will log the Debug out put and force the parameter to 30 in max value.  The "Trigger" Object is simply there to get the rule to run whenever "test" changes value.  then the condition will only change the value when it is outside of the limit.

 

Let me know if you have any questions.

0 Likes
Message 4 of 5

ObradKostadinovic
Contributor
Contributor

This is fine for a limit, but if you want to measure an angle between two surfaces and export it to a parameter it takes a bunch of work geometry, a sketch, a bunch of clicks. If you had exposed autolimits this would be literally one click. Having exposed autolimits would save me days of work and it would almost compete with what siemens nx has with measurement as a feature that exposes the value as a parameter.

0 Likes
Message 5 of 5

J-Camper
Advisor
Advisor

This is an old topic.  I don't use auto limits myself so I am unfamiliar.  I had to go to addin manager to load it, because it is not set to automatically load by default install, so I could look into what these actually are. 

 

If you could share a part you want to test with, I could help look into it.  I just don't know how to use them as a user, so I don't know how to try to use them with API.

0 Likes