iLogic - create rule to save copy as parasolid (x_t) file with 24 version

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
With Inventor 2013 the default x_t files were saved in version 24, but now, with Inventor 2014, the default x_t file is saved in version 25. I am trying to make a rule to save it with version 24 because I need to send it to CAM software that works only with this version.
My problem is to reach/know what is the syntax that I need to use to set the version. The rule is on this way:
'
'Save Text Parasolid - _xt version 24
path_and_namext = ThisDoc.PathAndFileName(False)
xtAddIn = ThisApplication.ApplicationAddIns.ItemById("{A8F8F8E5-BBAB-4f74-8B1B-AC011251F8AC}")
oDocument = ThisApplication.ActiveDocument
oContext = ThisApplication.TransientObjects.CreateTranslationContext
oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
oOptions = ThisApplication.TransientObjects.CreateNameValueMap
oDataMedium = ThisApplication.TransientObjects.CreateDataMedium
If xtAddIn.HasSaveCopyAsOptions(oDocument, oContext, oOptions) Then
oOptions.Value("X_TVersion") = 24
End If
'Set the destination file name
oDataMedium.FileName = path_and_namext & ".x_t"
'Publish document.
Call xtAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)
Exit Sub
'
It works, but does not set the version - I don't know what is the syntax to set the red line above.
What is the correct syntax that I can use to define 24 version (or other...)?
Is there something wrong with the rule?
...I need some help...
Thanks.