Message 1 of 3

Not applicable
10-01-2020
05:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
Looking for some help, when I shrinkwrap out a drawing using the API, the return IPT is in cm when I need it in mm. I don't particularly want to use Ilogic as this is all controlled though VB. I believe I should be using "UnitsTypeEnum.kMillimeterLengthUnits" I just can't work out how it has be be written correctly.
Below is a small snippet of where it will sit (I believe).
Thanks again for the help
ShRDef.RemoveInternalParts = False
ShRDef.RemovePartsBySize = False
'ShRDef.RemovePartsSize = 5 'cm
'''''''''''''''''''''''''''''''ShRDef.RemovePocketsMaxFaceLoopRange = 10 'cm
ShRDef.RemovePocketsStyle = ShrinkwrapRemoveStyleEnum.kShrinkwrapRemoveByRange
ShRDef.RenameComponent = True
ShRDef.UseColorOverrideFromSourceComponent = True
ShrComp = oPCD.ReferenceComponents.ShrinkwrapComponents.Add(ShRDef)
<<<< Change Unit Type would sit here>>>
'Save Documents and create DWG
Dim activeDoc As Inventor.PartDocument
activeDoc = _invApp.ActiveEditObject
activeDoc.SaveAs(fileNameIPTS, True)
activeDoc.SaveAs(fileNameShrink, True)
activeDoc.Close(True)
oDoc.Close(True)
Solved! Go to Solution.