Convert menu source into SendCommand
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Convert menu source into SendCommand

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Anthony Ryan
Guest





Posted: Sat Mar 19, 2005 3:21 pm    Post subject: Convert menu source into SendCommand Reply with quote

Hi all and thanks for any help,

I have a 'mns' file for some custom menus, but I'm wish to convert
these into
VB code to be used in a toolbar in a OCX along with accont16.arx
(I am using AutoCAD 2004).

The mns code that I wish to convert is ^C^C-insert "HV_Pole Existing"
\1 1 0


I know how to insert BlockReferences into drawings at a coordinate
using
ThisDrawingModelSpace.InsertBlock & ThisDrawing.Utility.GetPoint
methods,
but I would like to keep the same feel to the user and also when the
Block is
inserted into the drawing you can see the block at the crosshairs.
Where as the ThisDrawingModelSpace.InsertBlock &
ThisDrawing.Utility.GetPoint methods you do not get to see this
preview.

Can anybody please help?

Anthony.

Back to top
Anthony Ryan
Guest





Posted: Sun Mar 20, 2005 6:52 pm    Post subject: Re: Convert menu source into SendCommand Reply with quote

I have found a solution.

"^C^C-insert TR_Pole Existing" & vbCr & "(command pause 1 1 0)" & vbCr

Thanks
Anthony


aryan2000@hotmail.com (Anthony Ryan) wrote in message news:<c319162a.0503190221.6a520114@posting.google.com>...
Quote:
Hi all and thanks for any help,

I have a 'mns' file for some custom menus, but I'm wish to convert
these into
VB code to be used in a toolbar in a OCX along with accont16.arx
(I am using AutoCAD 2004).

The mns code that I wish to convert is ^C^C-insert "HV_Pole Existing"
\1 1 0


I know how to insert BlockReferences into drawings at a coordinate
using
ThisDrawingModelSpace.InsertBlock & ThisDrawing.Utility.GetPoint
methods,
but I would like to keep the same feel to the user and also when the
Block is
inserted into the drawing you can see the block at the crosshairs.
Where as the ThisDrawingModelSpace.InsertBlock &
ThisDrawing.Utility.GetPoint methods you do not get to see this
preview.

Can anybody please help?

Anthony.
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB