Message 1 of 6
sending comands to the command line

Not applicable
11-19-2008
12:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I have been trying to teach myself VBA for the past couple weeks. I am very familiar with Visual lisp. One thing I have noticed about VBA is you can not run commands from autocad as easy as you can with lisp (at least for me). What I am trying to do is use the sweep command to draw Pipe profile at 0,0,0 and loop to place a pipe on each line that i have in a selection set. I noticed that VBA does not have a Sweep command in the there object browser, so I tried to do this ThisDrawing.SendCommand "sweep" & vbCr & "object" & vbCr & "path" & vbCr & vbCr. The variable "Object" is the pipe drawn @ 0,0,0 and "path" is the line that i want to sweep on. I am guessing that this didn't work because the command line does not reconize the variables Object and Path. Does anyone know how i can get around this. Is there any way to run the sweep command and use the variables that i have set. Any help is much appreciated
Also I do not think that extrude on a path will work, because the pipe needs to always be drawn at 0,0,0 and i will never know where the line will be in the drawing.
I have been trying to teach myself VBA for the past couple weeks. I am very familiar with Visual lisp. One thing I have noticed about VBA is you can not run commands from autocad as easy as you can with lisp (at least for me). What I am trying to do is use the sweep command to draw Pipe profile at 0,0,0 and loop to place a pipe on each line that i have in a selection set. I noticed that VBA does not have a Sweep command in the there object browser, so I tried to do this ThisDrawing.SendCommand "sweep" & vbCr & "object" & vbCr & "path" & vbCr & vbCr. The variable "Object" is the pipe drawn @ 0,0,0 and "path" is the line that i want to sweep on. I am guessing that this didn't work because the command line does not reconize the variables Object and Path. Does anyone know how i can get around this. Is there any way to run the sweep command and use the variables that i have set. Any help is much appreciated
Also I do not think that extrude on a path will work, because the pipe needs to always be drawn at 0,0,0 and i will never know where the line will be in the drawing.