convert *.dwg files to *.vdf using vb 6
Page 1 of 1
convert *.dwg files to *.vdf using vb 6
#1
Posted 03 May 2009 - 11:13 PM
I am trying to use a converter (an exe file) to convert *.dwg files to *.vdf through code. I am using following code which is not working.
<code> Dim AppPath As String
Dim val As Integer
val = 1
parameters = "? " + sourcefilename + "? " + destfilename
AppPath = App.Path & "\vdconv.exe"
success = VDPro1.VdShellExecute("", AppPath, parameters, val) <code>
is there any other method to do this?
<code> Dim AppPath As String
Dim val As Integer
val = 1
parameters = "? " + sourcefilename + "? " + destfilename
AppPath = App.Path & "\vdconv.exe"
success = VDPro1.VdShellExecute("", AppPath, parameters, val) <code>
is there any other method to do this?
#5
Posted 06 May 2009 - 03:38 AM
The full code is as follows
everything is going well except exe not getting executed
everything is going well except exe not getting executed
Private Sub vdraw_NeedFileConvert(FileToOpen As String, TempFileName As String, ByVal CadVer As VDProLib5.VdConstFileVer, success As Boolean)
Dim parameters As String
Dim destfilename As String
Dim src As String
Dim actions As Long
destfilename = TempFileName
src = FileToOpen
success = False
actions = vdraw.ActionValidates
If Not (actions And 4194304) = 4194304 Then actions = actions + 4194304
If Not (actions And 8388608) = 8388608 Then actions = actions + 8388608
parameters = "? " + src + "? " + destfilename + "? " + CStr(CadVer) + " ? 1024 ? 768" + " ? " + CStr(actions) + " ? 0 ? 0 ? 1"
Dim appPath As String
Dim val As Integer
val = 1
appPath = app.path &"\vdconv.exe"
success = vdraw.VdShellExecute("", appPath, parameters, val)
End Sub
This post has been edited by LtSwapnil: 06 May 2009 - 03:42 AM
Page 1 of 1

Start a new topic
Add Reply




MultiQuote
| 


