Page 1 of 1

Please help!

Posted: Tue Jun 29, 2004 1:15 pm
by remote4
Hi

Is there any way to disable unwanted autocad functions or disable the command line so the user can't access these commands(Kill a command) to alter drawing, menus or toolbars, ect?

Thanks

Posted: Tue Jun 29, 2004 3:22 pm
by John Finlay
remote4,

The short answer - No.

CAD's open architecture is what makes the program so versatile. When ICAD is in focus the command interpreter will respond to Lisp, Diesel, scripts and commands.

The only control you could try is to disable the keys on the keyboard through API calls.

Another option you could try is to use VB to wrap ICAD so that only the graphics screen is available and that only your commands could be sent to the command interpreter.

What are you trying to achieve?

------------------
Regards
John Finlay

Posted: Wed Jun 30, 2004 3:54 am
by MROCK
Hi remote4
You can use the UNDEFINE command in Intellicad. You may call this command from ICAD.LSP, including for example the following line:
(command "UNDEFINE" "LINE")
The LINE command will not be available for the user.

It is probably not 100% what you want, because any experienced user can type "REDEFINE" "LINE" to make this command available again, but most users would not know this and those who are more experienced probably will not do any harm using the commands you are trying to lock.

Posted: Wed Jun 30, 2004 5:40 am
by remote4
John,
Thank you for the reply.

To be honest my English is not good and I hope you understand my problem.
Basically,I'm looking for a way to protect drawing data that uploaded on a server.
I want to allow users of specific computers to open or import a drawing file from server but prevent them from

saving open drawings on computer or disk drive,like View-Only Software.


I've removed menu items and tried to use:

Private Sub AcadDocument_BeginCommand(ByVal CommandName As String)
If CommandName = "SAVEAS" Then
SendKeys "{Esc}"
End If
End Sub

But this will not stop the command if CTRL+BREAK Interruption occur Within a Macro!
Do you have any suggestion about how to prevent CTRL+BREAK from interrupting a macro?
Your second suggestion sounds great.
Would you please help me through it?

Thanks once again.
remote4

Posted: Wed Jun 30, 2004 6:01 am
by remote4
MROCK,
Thanks for your suggestion.
remote4

Posted: Wed Jun 30, 2004 3:50 pm
by John Finlay
remote4,

What you are after is at http://www.cadlock.com

There is a 30 day trial and this could solve your problems.

------------------
Regards
John Finlay

Posted: Thu Jul 01, 2004 9:29 am
by remote4
John,

Thanks for your help I will try it.

Regards