I am using Inventor 2010 and I want the weight of the part but not the lbmass in the titleblock. In 2010 there are no ilogic rules to change this so how would I accomplish this?
You can change the document settings (tools/document settings/Units tab) for that part to another mass unit.
Sorry I mis-read your posting... Try this link for your solution if you have the ilogic add-in for 2010
http://blogs.rand.com/manufacturing/2011/07/inventor-ilogic-mass-to-custom-iproperties.html
Here is my ilgoic rule,
it creates a custom iproperty, that you use use in your title block., just add a trigger and it will update (mine is set to update after I save)
PS, I have it set to round to the nearest half pound, you can change that precision by playing with the line
"iProperties.Value("Custom", "TotalWT") = (Round((mass*2.20462262)*2))/2"
'Weight doc = ThisDoc.Document customPropertySet = doc.PropertySets.Item("Inventor User Defined Properties") 'Make sure TotalWT property exists Try prop = customPropertySet.Item("TotalWT") Catch 'Assume error means not found customPropertySet.Add("", "TotalWT") End Try 'Find the filename of the model used in the drawing If ThisDoc.ModelDocument Is Nothing Then Goto handleErrors ElseIf ThisDoc.ModelDocument.DocumentType = kPresentationDocumentObject Goto handleErrors Else modeldocname = IO.Path.GetFileName(ThisDoc.ModelDocument.FullFileName) End If 'Find the mass of the model used in the drawing mass = iProperties.Mass(modeldocname) 'Write the mass of the model to the TotalWT custom iProperty. 'The mass is converted from kg to lbs and rounded to the nearest integer iProperties.Value("Custom", "TotalWT") = (Round((mass*2.20462262)*2))/2 InventorVb.DocumentUpdate() Exit Sub handleErrors: 'do nothing InventorVb.DocumentUpdate()
Good Luck
If I remember correctly... It was a free download through the (Autodesk) subscription center if you had a subscription contract with Autodesk. Going forward, iLogic is part of the software install.
Not sure you can access it now (the free download) since 2010 is not really supported by Autodesk anymore.
I am not sure where you are coming from when you say that there is no iLogic rule for 2010. I was using 2012 and had the exact same issue.
In the thread link below is an iLogic rule that is called "TotalWT". What I did was link an iproperty to the rule and that is placed in the title block and then you can place the unit of your choice at the end of this line of text (that has the rule in it) in the TB.
http://forums.autodesk.com/t5/Inventor-General/Mass-in-title-block/m-p/3712028#M454915
Hope this makes sense.
If this solved your issue please mark this posting "Accept as Solution".
Or if you like something that was said and it was helpful, Kudos are appreciated. Thanks!!!!