Has anyone figured out how to import "Mass" into custom properties and then remove the "lbmass" and add "lbs" either through a parameter equation, vba, or Ilogic?
I know there is an "isolate" function, but I don't know the rest of the string.
Also, I'm having trouble with my Ipart members keeping my custom material. The correct color is showing around the edges of the parts, but not the surfaces. This is probably a checkbox that I'm missing somewhere.
I wish Inventor would just add some of these lifelong problems to the software and throw us a bone...
Solved! Go to Solution.
Solved by LOONYLEN. Go to Solution.
Setting up a custom iProp called "mass" and running this in iLogic :
iProperties.Value("Custom", "mass") = iProperties.Mass & "lbs"
Results in the mass with "lbs" concatenated onto the end.
Is this what you are trying to achieve?
Tom
Thanks for your reply.
Yes that is what I was looking for, but I'm looking to do it in the parameter equation box.
The old way to do it was isolate(Mass;lbmass;ul) - which, if written in a "UL" parameter would give you the same answer as your Mass property without the "lbmass", then you could send that to your .idw "Weight" box and on the template add "Lbs.", it would update and was connected to the part or assembly. It was a REAL weight value.
I was wondering if there was a way to round the answer to one place (X.X Lbs.) and add the Lbs. tag all in the parameters box.
Or maybe in the VBE and embed it in that file. I kind of want to stay away from the "Ilogic" thing on this project.
Thanks,
Len
Pretty old post. But how would I limit the mass to say 3 or 4 decimal places? I get about 20 places when using the below code.
Thanks!
iProperties.Value("Custom", "mass") = iProperties.Mass & " lbs"
Excellent.
Thank you!!
Hello,
The answer I was looking for to import Mass into a custom iProperty and then remove the "lbmass" and add "lbs" using only parameters is as follows:
InventorVb.DocumentUpdate()
iLogicVb.UpdateWhenDone = True
Mass = iProperties.Mass