• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

library functions: how to insert max limit on altitude?

  • Thread starter Thread starter furius
  • Start date Start date

furius

Guest
Bye to all,
I have the following problem: I have to create library functions where I have to leave some odds (of a sketch) whose value must be defined by the user at the time of insertion. I would like to define a minimum and maximum limit for some of these quotas, so that the user can not enter values outside the desired range... Any suggestions? the only idea that at the moment I came is to create building sketch entities that go wrong when the user assigns a value not included in my range... but it is not so trivial to implement and not even very intuitive... Does anyone know a more direct solution?
Thank you.

:cool:
 
uses sensors in the history tree. the program will admit the value but will signal the error. If you want it to be impossible to insert a different share from those you want, you should create a configuration for each quota so as to compel the choice at the time of the function (it may be necessary, however, to add an undesirable number of configurations).
 
uses sensors in the history tree. the program will admit the value but will signal the error. If you want it to be impossible to insert a different share from those you want, you should create a configuration for each quota so as to compel the choice at the time of the function (it may be necessary, however, to add an undesirable number of configurations).
thanks for the answer... I actually believe that sensors don't work in library functions, or better are not transferred to the part where I insert the library function and then lose the set control. . .

as to the configurations in fact the combinations for example of only 2 parameters that I want to control, they prevent me from considering this as a path that can be reached. . I should create too many configurations. . .

I hoped there was a simpler method but it would seem no

thanks anyway:smile:
 
Yes, the sensors do not transmit library function, my first idea (not expressed) was as follows:
realize the function and create a table like the one attached, but you have no mistake, you only have a property that if out of the range returns you the impossible value.
the problem is that you must first insert the function and after carivcate the table, also you must remember to load the table at each variation of quota.
Ultimately the table only checks that the odds are within your parameters and returns you a property (work) where it indicates the result (impossible if out) from the range. with a macro on which you look hardware, you should be able to automate the insertion of the table.
there is to add that you could connect the result of the answer "work" to an equation with "iif" so that it makes you "fall" the model in case the answer is not adequate.
I think more sw doesn't.
 

Attachments

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top