Help with Insert Block Dialogue Box?
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
Help with Insert Block Dialogue Box?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD
Author Message
Disco Dave
Guest





Posted: Wed Jan 26, 2005 2:08 am    Post subject: Help with Insert Block Dialogue Box? Reply with quote

Does anyone know if there is a SETVAR command to disable the Insert Block
dialogue box in AutoCAD 2005 so that the user has to type in values in the
command prompt as opposed to filling in the dialogue box when inserting
blocks?

I know it can be done by typing '-insert', however a colleague of mine has
an old utility (written and compiled in VB for LT95) for inserting blocks,
however it automatically uses the 'insert' command and expects a command
prompt to appear instead of the dialoue box and thus causes the program to
fail.

Because it's compiled, I can't change the code to use 'insert' instead of
'-insert' :-(.

Any help much appreciated.

Dave

Back to top
Michael Bulatovich
Guest





Posted: Wed Jan 26, 2005 2:59 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

Way back in r14 it was CMDDIA set to zero, but
I don't know about 2005.
--


MichaelB
www.michaelbulatovich.com

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f6b57e$0$73794$ed2619ec@ptn-nntp-reader03.plus.net...
Quote:
Does anyone know if there is a SETVAR command to disable the Insert Block
dialogue box in AutoCAD 2005 so that the user has to type in values in the
command prompt as opposed to filling in the dialogue box when inserting
blocks?

I know it can be done by typing '-insert', however a colleague of mine has
an old utility (written and compiled in VB for LT95) for inserting blocks,
however it automatically uses the 'insert' command and expects a command
prompt to appear instead of the dialoue box and thus causes the program to
fail.

Because it's compiled, I can't change the code to use 'insert' instead of
'-insert' :-(.

Any help much appreciated.

Dave

Back to top
Paul Turvill
Guest





Posted: Wed Jan 26, 2005 3:37 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

I assume you don't have the source code, but what all does the routine do,
other than the block insertion? If it's not too complex, it may not be too
difficult to just write a new piece of code in LISP or VBA to do the same
thing.
___

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f6b57e$0$73794$ed2619ec@ptn-nntp-reader03.plus.net...
Quote:

Because it's compiled, I can't change the code to use 'insert' instead of
'-insert' :-(.


Back to top
Disco Dave
Guest





Posted: Wed Jan 26, 2005 4:26 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

Thanks for both responses. I've just tried CMDDIA and it made no
difference. I don't have the source code as it's been compiled using VB4
(it's an .exe file).

The small app was really the same as the Design Center in AutoCAD, ie, you
could manage and preview your blocks, etc. But the guy who's using it is
'old-school' and has been using it since LT95. It's like trying to teach an
old dog new tricks. So I thought a simple SETVAR command would solve this
problem.

Oh well, looks like he'll just have to learn using the Design Center.


"Paul Turvill" <nospam@turvill.com> wrote in message
news:QpGdnYtjgMGzV2vcRVn-oA@whidbeytel.com...
Quote:
I assume you don't have the source code, but what all does the routine do,
other than the block insertion? If it's not too complex, it may not be too
difficult to just write a new piece of code in LISP or VBA to do the same
thing.
___

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f6b57e$0$73794$ed2619ec@ptn-nntp-reader03.plus.net...

Because it's compiled, I can't change the code to use 'insert' instead of
'-insert' :-(.

Back to top
Michael Bulatovich
Guest





Posted: Wed Jan 26, 2005 4:35 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

Are you getting an error message that tells you the INSERT command is the
problem?

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f6d5d5$0$40205$ed2e19e4@ptn-nntp-reader04.plus.net...
Quote:
Thanks for both responses. I've just tried CMDDIA and it made no
difference. I don't have the source code as it's been compiled using VB4
(it's an .exe file).

The small app was really the same as the Design Center in AutoCAD, ie, you
could manage and preview your blocks, etc. But the guy who's using it is
'old-school' and has been using it since LT95. It's like trying to teach
an
old dog new tricks. So I thought a simple SETVAR command would solve this
problem.

Oh well, looks like he'll just have to learn using the Design Center.


"Paul Turvill" <nospam@turvill.com> wrote in message
news:QpGdnYtjgMGzV2vcRVn-oA@whidbeytel.com...
I assume you don't have the source code, but what all does the routine
do,
other than the block insertion? If it's not too complex, it may not be
too
difficult to just write a new piece of code in LISP or VBA to do the same
thing.
___

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f6b57e$0$73794$ed2619ec@ptn-nntp-reader03.plus.net...

Because it's compiled, I can't change the code to use 'insert' instead
of
'-insert' :-(.



Back to top
Michael Bulatovich
Guest





Posted: Wed Jan 26, 2005 4:37 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

Sorry (Brain-fart).

You're obviously getting an INSERT dialogue box, and then the routine is
choking, right?
You could redefine the INSERT command on that machine......


"Michael Bulatovich" <Please@dont.try> wrote in message
news:hKAJd.2983$Yg6.701293@news20.bellglobal.com...
Quote:
Are you getting an error message that tells you the INSERT command is the
problem?

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f6d5d5$0$40205$ed2e19e4@ptn-nntp-reader04.plus.net...
Thanks for both responses. I've just tried CMDDIA and it made no
difference. I don't have the source code as it's been compiled using
VB4
(it's an .exe file).

The small app was really the same as the Design Center in AutoCAD, ie,
you
could manage and preview your blocks, etc. But the guy who's using it
is
'old-school' and has been using it since LT95. It's like trying to
teach
an
old dog new tricks. So I thought a simple SETVAR command would solve
this
problem.

Oh well, looks like he'll just have to learn using the Design Center.


"Paul Turvill" <nospam@turvill.com> wrote in message
news:QpGdnYtjgMGzV2vcRVn-oA@whidbeytel.com...
I assume you don't have the source code, but what all does the routine
do,
other than the block insertion? If it's not too complex, it may not be
too
difficult to just write a new piece of code in LISP or VBA to do the
same
thing.
___

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f6b57e$0$73794$ed2619ec@ptn-nntp-reader03.plus.net...

Because it's compiled, I can't change the code to use 'insert'
instead
of
'-insert' :-(.




Back to top
Paul Turvill
Guest





Posted: Wed Jan 26, 2005 7:14 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

Mmmm ... maybe, but it depends on how the VB4 app is actually calling the
INSERT command. It's worth a try, though:

(command "_.undefine" "insert")
(defun C:INSERT ( )
(command "_.-insert")
(princ)
)
___

"Michael Bulatovich" <Please@dont.try> wrote in message
news:6MAJd.2984$Yg6.701823@news20.bellglobal.com...
Quote:

You could redefine the INSERT command on that machine......
Back to top
Relz
Guest





Posted: Wed Jan 26, 2005 5:50 pm    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

Set FILEDIA to zero, run the code, then set FILEDIA back to 1... if you want
to go through that hassle.

Relz
Back to top
Disco Dave
Guest





Posted: Thu Jan 27, 2005 1:39 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

Thanks for all the advice. However:

FILEDIA doesn't work as this only controls the dialogue box for the
OPEN/SAVE/SAVEAS/NEW commands.

I'm not too sure how the program works, but it seems to be completely
independent of AutoCAD (obviously it tells you that AutoCAD must be running
if you try to run a command within the program whilst AutoCAD is not
running). It simply issues commands to the AutoCAD command prompt.

Basically when you click on a symbol (block) within the program, it coverts
all the options that you have chosen (scale, position, rotation, attributes,
etc) into a series of commands that AutoCAD understands and then inserts the
commands into the AutoCAD command prompt - similar to a script file.

By looking at the commands in the command prompt, the first command it
issues to AutoCAD is 'INSERT' - but because the BLOCK dialogue box appears,
it doesn't get any further.

I think redefining the INSERT command would work, however I don't have much
experience in LISP. Would this interfere with the default INSERT command?
Would this piece of code be included in the ACAD2005.LSP file?



"Relz" <relz77@nospamhotmail.com> wrote in message
news:41f791fc$1@acct.mcgacct.local...
Quote:
Set FILEDIA to zero, run the code, then set FILEDIA back to 1... if you
want to go through that hassle.

Relz
Back to top
Michael Bulatovich
Guest





Posted: Thu Jan 27, 2005 2:18 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f80048$0$55486$ed2619ec@ptn-nntp-reader02.plus.net...
Quote:
Thanks for all the advice. However:
I think redefining the INSERT command would work, however I don't have
much
experience in LISP. Would this interfere with the default INSERT command?

YES! That's the idea.

Quote:
Would this piece of code be included in the ACAD2005.LSP file?

Sorry, don't know what you mean.
Back to top
Disco Dave
Guest





Posted: Thu Jan 27, 2005 4:43 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

What I meant was: where do I enter this code so that AutoCAD always
substitutes the INSERT command with -INSERT?


"Michael Bulatovich" <Please@dont.try> wrote in message
news:JPTJd.7774$mA5.437618@news20.bellglobal.com...
Quote:

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f80048$0$55486$ed2619ec@ptn-nntp-reader02.plus.net...
Thanks for all the advice. However:
I think redefining the INSERT command would work, however I don't have
much
experience in LISP. Would this interfere with the default INSERT
command?

YES! That's the idea.

Would this piece of code be included in the ACAD2005.LSP file?

Sorry, don't know what you mean.
Back to top
Michael Bulatovich
Guest





Posted: Thu Jan 27, 2005 4:55 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

I've lost touch with newer versions and how they automatically load lisps.
It used to be that you just put it into your acad.lsp. After A2k it changed.

Check your own documentation, and I'd wait for the word from Paul, as
I have never personally redefined a command before.
--


MichaelB
www.michaelbulatovich.com

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f82b33$0$34310$ed2619ec@ptn-nntp-reader01.plus.net...
Quote:
What I meant was: where do I enter this code so that AutoCAD always
substitutes the INSERT command with -INSERT?


"Michael Bulatovich" <Please@dont.try> wrote in message
news:JPTJd.7774$mA5.437618@news20.bellglobal.com...

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f80048$0$55486$ed2619ec@ptn-nntp-reader02.plus.net...
Thanks for all the advice. However:
I think redefining the INSERT command would work, however I don't have
much
experience in LISP. Would this interfere with the default INSERT
command?

YES! That's the idea.

Would this piece of code be included in the ACAD2005.LSP file?

Sorry, don't know what you mean.


Back to top
Martin Shoemaker
Guest





Posted: Thu Jan 27, 2005 6:08 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

Try this:

(command ".undefine" "insert")
(defun c:insert()
(command "-insert")
)

I put things like this in acaddoc.lsp.

Martin

Michael Bulatovich wrote:
Quote:
I've lost touch with newer versions and how they automatically load lisps.
It used to be that you just put it into your acad.lsp. After A2k it changed.

Check your own documentation, and I'd wait for the word from Paul, as
I have never personally redefined a command before.
Back to top
Paul Turvill
Guest





Posted: Thu Jan 27, 2005 6:47 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

Before you worry about where to put it, I think it would be a good idea to
just type the code I gave you at the Command: prompt and see if it changes
the behavior of your old VB routine. If it does so, then the appropriate
place would be somewhere in your Startup Suite, e.g., acaddoc.lsp.

If you're not comfortable with entering LISP code at the Command: prompt,
just cut and paste my example code into a text file, save it as something
like FIXINS.LSP, then load it with either the (load ...) function or the
APPLOAD command.
___

"Disco Dave" <someone@microsoft.com> wrote in message
news:41f82b33$0$34310$ed2619ec@ptn-nntp-reader01.plus.net...
Quote:
What I meant was: where do I enter this code so that AutoCAD always
substitutes the INSERT command with -INSERT?
Back to top
Rod Uding
Guest





Posted: Fri Jan 28, 2005 2:02 am    Post subject: Re: Help with Insert Block Dialogue Box? Reply with quote

Set the ATTDIA variable to 0


Type: Integer
Saved in: Registry
Initial value: 0
Controls whether the INSERT command uses a dialog box for attribute value
entry. See INSERT Command Line.

0 Issues prompts on the command line
1 Uses a dialog box



"Disco Dave" <someone@microsoft.com> wrote in message
news:41f6b57e$0$73794$ed2619ec@ptn-nntp-reader03.plus.net...
Quote:
Does anyone know if there is a SETVAR command to disable the Insert Block
dialogue box in AutoCAD 2005 so that the user has to type in values in the
command prompt as opposed to filling in the dialogue box when inserting
blocks?

I know it can be done by typing '-insert', however a colleague of mine has
an old utility (written and compiled in VB for LT95) for inserting blocks,
however it automatically uses the 'insert' command and expects a command
prompt to appear instead of the dialoue box and thus causes the program to
fail.

Because it's compiled, I can't change the code to use 'insert' instead of
'-insert' :-(.

Any help much appreciated.

Dave

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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