Message 1 of 5
sendcommand alternative ???

Not applicable
11-14-2008
10:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I'm slowly but surly
learning about programming with AutoCAD. I have a macro that has about
10 commands that operate in sequence. I've tried to experiment with the
sendcommand but I have learned that the commands don't work in
sequence. Is there an easy way around this?
The first part of what I want to accomplish is:
1. freeze the "engraving" layer so it does not explode.
2. Explode everything else (down to the smallest components)
3. unfreeze the "engraving layer".
Here is a partial of what I have.
Private Sub CommandButton1_Click()
ThisDrawing.Layer s.Item("Engraving"). Freeze = True
ThisDrawing.SendCommand "XPLODE" & vbCr & "ALL" & vbCr & "" & vbCr & "G" & vbCr '& vbCr
ThisDrawing.Layers.Item("Engraving").Freeze = False
End Sub
I am starting with this portion hoping that I will be able to apply what I learn to the rest of my code.
Edited by: SHAWN.FERNANDEZ@OTIS.COM on Nov 14, 2008 1:27 PM Edited by: SHAWN.FERNANDEZ@OTIS.COM on Nov 14, 2008 1:27 PM
I'm slowly but surly
learning about programming with AutoCAD. I have a macro that has about
10 commands that operate in sequence. I've tried to experiment with the
sendcommand but I have learned that the commands don't work in
sequence. Is there an easy way around this?
The first part of what I want to accomplish is:
1. freeze the "engraving" layer so it does not explode.
2. Explode everything else (down to the smallest components)
3. unfreeze the "engraving layer".
Here is a partial of what I have.
Private Sub CommandButton1_Click()
ThisDrawing.Layer s.Item("Engraving"). Freeze = True
ThisDrawing.SendCommand "XPLODE" & vbCr & "ALL" & vbCr & "" & vbCr & "G" & vbCr '& vbCr
ThisDrawing.Layers.Item("Engraving").Freeze = False
End Sub
I am starting with this portion hoping that I will be able to apply what I learn to the rest of my code.
Edited by: SHAWN.FERNANDEZ@OTIS.COM on Nov 14, 2008 1:27 PM Edited by: SHAWN.FERNANDEZ@OTIS.COM on Nov 14, 2008 1:27 PM