on 09-26-2012 12:42 PM
Hi
We need to calculate
Mass = length * width * Thickness * 7.85
I had wrote procedure :
$SET_DEFAULT($SELF, Mass,($SELF.Length * $SELF.WIDTH * $SELF.Thickness * 7.85)).
for the default value of the Mass character.
there r no syntax error.
How ever when i enter Lenght,Width,Thickness - my Mass is not calculating.
Please help.
have you checked whether the procedure is assigned to the configuration profile?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Characteristic :- Mass has a default numeric value 7.85. My procedure condition has to overwrite on the default value.
I used the procedure :
$SET_DEFAULT($SELF, Mass,($SELF.Length * $SELF.WIDTH * $SELF.Thickness * 7.85)).
Charasterictic : Length , Width, Thickness are define and assigned to the same class
The Charasterics :
Length, Width, Thickness are chosen dynamically by the end user. Hence they need to be calculated
Another possible cause why the value for the characteristic Mass is not set is the status of the procedure. It must be set to released.
Also, all characteristics which are involved must be of numeric type.
In the configuration simulation CU50 you can also perform a trace under "Extras" -> "Trace" where you find out which dependency knowledge actually runs and which values are set.
HI,
I had defined as all the Characteristics as numeric. (with decimal vlues)
I had given the same condition in configuration profile - object dependicies.
$SET_DEFAULT($SELF, Mass,($SELF.Length * $SELF.WIDTH * $SELF.Thickness *7.85)).
So, its having dependencies both in cofig profile and in the characteritic 'Mass, as well.
I had performed Trace under "extras ->" didnt get any errors.
could not see the results.
7.85 is the Numeric value set to default for characterstic CT04.
I had put the dependency on my characteristic value.
Not in my config profile.
Trace report -- > preconditon execued.
can u explain me in detial, perharhs with the screenshots u used to my email....
seems basic problem is the type of dependency you are using as well as the place you attached it.
create a new dependecny with type " Procedure" with your existing syntax
$SET_DEFAULT($SELF, Mass,($SELF.Length * $SELF.WIDTH * $SELF.Thickness * 7.85))
make sure its status is 1 ( release)
and assign it to configuration profile.
so now when you will start configuration in CU50 , your characterstic will have default value 7.85 which is defaulted by a tick mark in CT04 against that value.
now when you will assign value for length, width and thickness, your newly created procedure will clauculate it and replace it.
hope it will help you.
Thanks
Ritesh
Good to know that its resolved, I as well as other members will appriciate if you share what was the error and how you rectified it ,This information will be usefull for others who may faced the similar issue in future.
Also would like to suggest you to awards points to member who helped you with informative replies, by marking helpfull or correct answers.
You can find my contact information in my profile.
Thanks
Ritesh
User | Count |
---|---|
95 | |
11 | |
9 | |
5 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.