MaxbyMike
Mechanical
- Jun 18, 2001
- 17
Hello, I have been trying to control ACIS file output version using the API functions. I was trying to use the SldWorks::SetUserPreferenceIntegerValue (userPreferenceValue, value) where the userPreferenceValue describes which preference you want to change. Has any one used these before, I am haveing a hard time getting them to work.I tried something like.
Code:
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long
Dim Annotation As Object
Dim Gtol As Object
Dim DatumTag As Object
Dim FeatureData As Object
Dim Feature As Object
Dim Component As Object
Sub main()
Set swApp = CreateObject("SldWorks.Application")
Set Part = swApp.OpenDoc4("C:\VB\file.SLDASM", 2, 0, "", longstatus)
Set Part = swApp.ActivateDoc("file.SLDASM")
swApp.SetUserPreferenceIntegerValue (swAcisOutputVersion, 1)
Part.SaveAs "c:\OUT\fileacis.sat"
End Sub
[\code]
This is suppose to output a ACIS File Ver.1.6
Can Any one Help?
Thanks
Mike Pacholski (mikepacholski@hotmail.com)