Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using VBA variables with SENDCOMMAND

617 views
Skip to first unread message

Dave Zinn

unread,
Oct 9, 2000, 3:00:00 AM10/9/00
to
Particulars: MDT5, VBA (for A2Ki)

Is there a way to use a VBA variable as an argument to SENDCOMMAND, much
like in LISP when you would do something like:
(command "view" "window" "as1" p1 p2)

The reason I am attempting this method is because I had read that you cannot
save a view in paperspace via VBA. Is that still true?

TIA,
Dave Zinn,
Ball Aerospace & Technologies Corp.


Bernard Flavignard

unread,
Oct 9, 2000, 3:00:00 AM10/9/00
to
Dave

it is possible

ThisDrawing.SendCommand "_-insert" & vbCr & nom_bloc & vbCr & "_s" & vbCr &
point1xy & vbCr & point2 & vbCr & point1 & vbCr & point2 & vbCr

In this example, insert a block,
name = nom_bloc
scale define by point1xy and point2
Insert point = point1
Rotation define by point1 and point2

Bernard
ATC
45700 Villemandeur
Dave Zinn <dz...@ball.com> a écrit dans le message :
22D7918794E7A5A0...@in.WebX.SaUCah8kaAW...

Frank Oquendo

unread,
Oct 9, 2000, 3:00:00 AM10/9/00
to
I've not tried it in A2Ki (not using it yet), but in A2K you can use the
VLAX class module (Downloads section of the site below) to create LISP
symbols from VBA variables:

' assuming p1 and p2 are points in VBA
Dim objVLAX As New VLAX

objVLAX.SetLispSymbol "p1", p1
objVLAX.SetLispSymbol "p2", p2

--
Tools you can use: get your free copy of ProPack
http://www.acadx.com

"Dave Zinn" <dz...@ball.com> wrote in message
news:22D7918794E7A5A0...@in.WebX.SaUCah8kaAW...

0 new messages