Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I get rid of lbmass in 2010?

7 REPLIES 7
Reply
Message 1 of 8
akyllo
565 Views, 7 Replies

How do I get rid of lbmass in 2010?

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?

7 REPLIES 7
Message 2 of 8
Lancasterm
in reply to: akyllo

You can change the document settings (tools/document settings/Units tab) for that part to another mass unit.

Message 3 of 8
akyllo
in reply to: Lancasterm

Yes but I want to keep it in pounds.

Message 4 of 8
Lancasterm
in reply to: akyllo

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

Message 5 of 8
SeanFarr
in reply to: akyllo

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

Sean Farr
Product Designer at TESInc.ca

Inventor Professional 2014-Update 2 - AutoCAD Electrical 2014
Win7-x64 | ASUS P8Z77-V | i7 3770 -3.4 GHz | 32GB RAM |
240GB SSD | nVidia GTX 670 4GB - 320.49
Message 6 of 8
akyllo
in reply to: Lancasterm

How do I get the add in?

Message 7 of 8
Lancasterm
in reply to: akyllo

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.

 

 

Message 8 of 8
Cadmanto
in reply to: akyllo

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.

 

check.PNGIf this solved your issue please mark this posting "Accept as Solution".

Or if you like something that was said and it was helpful, Kudoskudos.PNG are appreciated. Thanks!!!! Smiley Very Happy

 

New EE Logo.PNG

Inventor.PNG     vault.PNG

 

Best Regards,
Scott McFadden
(Colossians 3:23-25)


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report