cancel
Showing results for 
Search instead for 
Did you mean: 

Variant Configuration - multiplication of characters.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

have you checked whether the procedure is assigned to the configuration profile?

Former Member
0 Kudos

Yes, the Procedure is assigned to configuration profile.

The condition is, the procedure have to overwrite the default value.

Former Member
0 Kudos
Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

My requirement is to calculate

Mass = length * widht * thickness * 7.85

Where length Charaterstic - input could be given by customer

Width, Thickness - characters can be selected.

Hence wrote a procedure for Mass -  with default vaalue.

The procedure should over write the default value of mAss

Former Member
0 Kudos

Hello Rama,

Can you please advise how this 7.85 is set ? Is the value defaulted in CT04 or material master ?

Also what did the trace say ? Did it say the procedure was executed successully ? Can you please double on the procedure in the trace and tell me what values did it show ?

Thanks

Amber

Former Member
0 Kudos

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....

yenigalla.ramakrishna@gmail.com

Ritz
Active Contributor
0 Kudos

rama krishna ,

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

Former Member
0 Kudos

Hey amber,

some how got the problem solved by myself.

would like to be in touch incase of any queries...can i have ur gmail , if incase of any quries (if sruckup)

Former Member
0 Kudos

thanks ritesh.

solved the problem.

Former Member
0 Kudos

can i have ur gmail ID ritesh. incase of any queries...we can excahnge our thoughts

cheers

Ritz
Active Contributor
0 Kudos

rama krishna,

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