Solved! Go to Solution.
Solved by tuliobarata. Go to Solution.
Good Morning All!
Coming back to this issue of mine, using Inventor 2011.
I was trying to think here, something to sum the gross weight in the assemblies using iLogic..... But until now I didn't get any functional idea. Is that possible with this new tool ?
Because i can get the gross weight of any part, but the problem is get this total weight from the assemblies, only the gross weight.
Thanks very much
Túlio Barata
Good Afternoon all!
Again guys, in this new version 2012 is possible to get this gross weight ? Any good idea ?
Thanks Again.
Túlio Barata
Hey all,
I was thinking here, and tried this way :
Rewrite the property MASS of IV parts, with my gross weight, based on dmensions that I have to enter before. And when I need the NET Wight, I just have to open a part list of my main assembly and then get PARTS ONLY instead of Structural mode in the parts lists, with this I can sum my Net weight.
Like ths:
'Calculando os pesos bruto e liquido da peça pesoEspecifico = ThisDoc.Document.ComponentDefinition.Material.Density/1000000 pBruto = Round(Compr_Chapa*Larg_Chapa*Esp_Chapa*pesoEspecifico,2) pLiquido=Round(iProperties.Volume*pesoEspecifico,2) iProperties.Value("Custom", "pBruto") = pBruto iProperties.Value("Custom", "pLiquido") = pLiquido iProperties.Mass = pBruto
Thanks everyone!
Best regards, Túlio Barata
Well, i don't know if this is gonna help anyone, but I found a way to do that here.
Now i can get the gross weight and put it in the bom, and when i need, i can get the net weight too.
The only thing that I've done, overwritten the property "iProperties.Mass"...with my calculated gross weight,calculating with the dimensions of my template, getting the volume of a plate and multiplying by the density of the material.
Like this code below:
pesoEspecifico = ThisDoc.Document.ComponentDefinition.Material.Density/1000000 pBruto = Round(Compr_Chapa*Larg_Chapa*Esp_Chapa*pesoEspecifico,2) pLiquido=Round(iProperties.Volume*pesoEspecifico,2) iProperties.Value("Custom", "pBruto") = pBruto iProperties.Value("Custom", "pLiquido") = pLiquido iProperties.Mass = pBruto
Where:
Compr_Chapa, Larg_Chapa and Esp_Chapa - are my plate dimensions
pBruto and pLiquido - are my weights that I put in the BOM
pesoEspecifico - is my density, with the right unit
So i have to put this code in each template of mine, using its dimensions. Here we consider, if the part that you have to do, doesnt have a specific template, its not a piece that needs to get the net and gross weight - as a piece from casting steel.
Best Regards,
Túlio Barata