Thanks Curtis,
Actually I am trying to override a modelvalue
by scalefactor 3
Say modelvalue is 39" I want override display value as
the result of 39*3 =117"
Please can you take a look at the code below, I am stuck
at the oLenDim.OverrideModelvalue= Modval
It is not dispalying the correct override value in "
I know that inventor default value is in cm I have converted
it to inches.
Thanks in advance..
==================================================================
' Check whether the Drawing document is active document.
If ThisApplication.ActiveDocumentType <> kDrawingDocumentObject Then
MsgBox ("Please have the Drawing document open")
Exit Sub
End If
Dim OrDoc As DrawingDocument, OrDocSheet As Sheet
Set OrDoc = ThisApplication.ActiveDocument
Set OrDocSheet = OrDoc.Sheets("Sheet:1")
Dim oLenDim As GeneralDimension, oDLODim As GeneralDimension
Set oLenDim = OrDocSheet.DrawingDimensions.GeneralDimensions.Item(1)
'Add some formatted text to all dimensions on the sheet.
oLenDim.HideValue = False
Dim ModVal As Double, DimScale As Double
DimScale = 3
ModVal = oLenDim.ModelValue
ModVal = ModVal / 2.54
ModVal = ModVal * 3
'Debug.Print ModVal
oLenDim.OverrideModelValue = ModVal
=======================================================================
------------------------------------------------------------------------------
Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013
-----------------------------------------------------------------------------