Autodesk Inventor
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
I get Length in cm but Units are inch
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi guys,
I'm novice in Inventor API.
I have a stuped question:
I see that I get hole diameter in cantimeters:
m_Feature->HoleDiameter->Value
But units are inches:
m_Feature->HoleDiameter->GetUnits();
Units of the document are also inches, and Inventor GUI also displays inches.
So my question - why I get the length in cm? It seems like a bug.
Re: I get Length in cm but Units are inch
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi -
This is as designed. The API will always use what it calls "database units" to return (and receive) such values. There are "UnitsOfMeasure" objects available to convert between units and expressions.
For length, cm is always used.
Hope this helps,
Jeff
Re: I get Length in cm but Units are inch
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
If this was downloaded then this part was probably made in metric. If someone else at work made the part that did a override and inputted the dim as metric. When creating a feature you can over ride and manually inert any unit of length in the radio button for the dim callout you would like. This allows you to if you are mating two parts one in inches and one in metric to get them to mate without have to convert dim. So you can have a part model with mixed dim's. You're part drawing should come out as all inches if that is what the format is set to. IV is unitless unlike Autocad.
msk
Re: I get Length in cm but Units are inch
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Ok, I see.
Thanks,
Timur.
