Sendcommand

Sendcommand

Anonymous
Not applicable
242 Views
3 Replies
Message 1 of 4

Sendcommand

Anonymous
Not applicable
I put this sentence into my program to view UCS. :
Thisdrawing.sendcommand "_ucs" & vbCr & "_v" & vbCr
The UCS hasn't been changed during the program is run. The UCS is changed when I exit the program. Why? and how can I solve this problem to make my program change the UCS at runtime?
0 Likes
243 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Hide the dialog before sendcommand and show it
again afterwards. The following worked for me:

 

Private Sub
CommandButton1_Click()
Me.Hide
ThisDrawing.SendCommand "_ucs _world
"
Me.Show
End Sub

Hope this helps


--
Rune Wold
System
Analyst
Engineering Systems

href="mailto:[email protected]">[email protected]

--


style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
I
put this sentence into my program to view UCS. :
Thisdrawing.sendcommand
"_ucs" & vbCr & "_v" & vbCr
The UCS hasn't been changed during
the program is run. The UCS is changed when I exit the program. Why? and how
can I solve this problem to make my program change the UCS at
runtime?
0 Likes
Message 3 of 4

Anonymous
Not applicable
Hi All,

I have been looking for a work around for a problem that I have with a
VB batch printing program. This program was written for R14 (when
plotting was a little easier to achieve with VB) and needed to be
updated for A2K. I tried to control the plot process from VB with no
success. I found that lisp was the only way that I could achieve the
results I needed. Unfortunately the SENDCOMMAND method causes ACAD to be

displayed. I have tried visible=false and found that Acad would go away,

only to come back again with the next SENDCOMMAND comes along. A similar

result was found with the windowstate=acMin property.

In short is there any way I can run Acad without seeing it and use the
SENDCOMMAND method?

Thanks in advance

Dave
0 Likes
Message 4 of 4

Anonymous
Not applicable
Hi All,

I have been looking for a work around for a problem that I have with a
VB batch printing program. This program was written for R14 (when
plotting was a little easier to achieve with VB) and needed to be
updated for A2K. I tried to control the plot process from VB with no
success. I found that lisp was the only way that I could achieve the
results I needed. Unfortunately the SENDCOMMAND method causes ACAD to be

displayed. I have tried visible=false and found that Acad would go away,

only to come back again with the next SENDCOMMAND comes along. A similar

result was found with the windowstate=acMin property.

In short is there any way I can run Acad without seeing it and use the
SENDCOMMAND method?

Thanks in advance

Dave
0 Likes