Message 1 of 3
Sendcommand problem

Not applicable
02-23-2001
07:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using VB6 to send a vbarun command as follows:
mypath = VB.App.Path
acaddoc.SendCommand "-vbaload" & vbCr & mypath + "\myfile.dvb"
acaddoc.SendCommand "-vbarun" & vbCr & "myfile.dvb!mymacro" & vbCr
It seems that if the path contains any spaces they are interpreted as
returns in AutoCAD and the whole path isn't sent. Any way to handle this?
Thanks
Bud
mypath = VB.App.Path
acaddoc.SendCommand "-vbaload" & vbCr & mypath + "\myfile.dvb"
acaddoc.SendCommand "-vbarun" & vbCr & "myfile.dvb!mymacro" & vbCr
It seems that if the path contains any spaces they are interpreted as
returns in AutoCAD and the whole path isn't sent. Any way to handle this?
Thanks
Bud