Secure acces to .dvb programs??

Secure acces to .dvb programs??

Anonymous
Not applicable
561 Views
13 Replies
Message 1 of 14

Secure acces to .dvb programs??

Anonymous
Not applicable
Is it possible to define in a user profile or somewhere in Autocad which vba macros are allowed to be run, therefore excluding any others from ever being launched?
0 Likes
562 Views
13 Replies
Replies (13)
Message 2 of 14

Anonymous
Not applicable
No Private-ly defined subs will ever run ... but I have feeling this is not
what you're looking for is it?

Joe ...

wrote in message news:5227255@discussion.autodesk.com...
Is it possible to define in a user profile or somewhere in Autocad which vba
macros are allowed to be run, therefore excluding any others from ever being
launched?
0 Likes
Message 3 of 14

Anonymous
Not applicable
We do have some .dvb programs that are run, but I want to exclude all other .dvb programs from running in Autocad. Is this even possible? I want to prevent people from loading any old macro in acad.
0 Likes
Message 4 of 14

Anonymous
Not applicable
Sounds like these may be on a network drive? If so, change the permissions
for accessing them and remove them [out of sight out of mine].

Joe ...

wrote in message news:5227563@discussion.autodesk.com...
We do have some .dvb programs that are run, but I want to exclude all other
.dvb programs from running in Autocad. Is this even possible? I want to
prevent people from loading any old macro in acad.
0 Likes
Message 5 of 14

Anonymous
Not applicable
I think meski111 is refering to the users private dvb files. He (or
she) wants to prevent the user from loading/running dvb files that are
not made by/for the company.
0 Likes
Message 6 of 14

Anonymous
Not applicable
No, it is not possible, without disabling VBA entirely.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5227563@discussion.autodesk.com...
We do have some .dvb programs that are run, but I want to exclude all other .dvb programs from running in Autocad. Is this even possible? I want to prevent people from loading any old macro in acad.
0 Likes
Message 7 of 14

Anonymous
Not applicable
Is it possible to have an acaddoc.lsp in the AutoCAD support directory with
read-only access so a user cannot delete or edit it, that runs a VBA. This
VBA could check all loaded VBAs and unload any that are not in a list in the
VBA. This could also be run for a common event like BeginCommand

--
Regards
Dave Preston
<-
"Tony Tanzillo" wrote in message
news:5227992@discussion.autodesk.com...
No, it is not possible, without disabling VBA entirely.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5227563@discussion.autodesk.com...
We do have some .dvb programs that are run, but I want to exclude all other
.dvb programs from running in Autocad. Is this even possible? I want to
prevent people from loading any old macro in acad.
0 Likes
Message 8 of 14

Anonymous
Not applicable
What is to keep the user from defining another 'acaddoc.lsp' and putting
in above the other in the search path? Or just changing the attributes of
the
existing 'acaddoc.lsp'.

"Dave Preston" wrote in message
news:5228003@discussion.autodesk.com...
Is it possible to have an acaddoc.lsp in the AutoCAD support directory with
read-only access so a user cannot delete or edit it, that runs a VBA. This
VBA could check all loaded VBAs and unload any that are not in a list in the
VBA. This could also be run for a common event like BeginCommand

--
Regards
Dave Preston
<-
"Tony Tanzillo" wrote in message
news:5227992@discussion.autodesk.com...
No, it is not possible, without disabling VBA entirely.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5227563@discussion.autodesk.com...
We do have some .dvb programs that are run, but I want to exclude all other
.dvb programs from running in Autocad. Is this even possible? I want to
prevent people from loading any old macro in acad.
0 Likes
Message 9 of 14

arcticad
Advisor
Advisor
Declare Function Get_User_Name Lib "advapi32.dll" Alias _
"GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long

Function GetUserName() As String
Dim lpBuff As String * 25
Get_User_Name lpBuff, 25
GetUserName = left(lpBuff, InStr(lpBuff, Chr(0)) - 1)
End Function

then put in
if not ucase(username) = "BOB" then exit sub
so only people you know can run your code.
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 10 of 14

Anonymous
Not applicable
By an administrator taking ownership of the file and not allowing users \
domain users privileges to overwrite or change the file

--
Regards
Dave Preston
<-
"Paul Richardson" wrote in message
news:5228032@discussion.autodesk.com...
What is to keep the user from defining another 'acaddoc.lsp' and putting
in above the other in the search path? Or just changing the attributes of
the
existing 'acaddoc.lsp'.

"Dave Preston" wrote in message
news:5228003@discussion.autodesk.com...
Is it possible to have an acaddoc.lsp in the AutoCAD support directory with
read-only access so a user cannot delete or edit it, that runs a VBA. This
VBA could check all loaded VBAs and unload any that are not in a list in the
VBA. This could also be run for a common event like BeginCommand

--
Regards
Dave Preston
<-
"Tony Tanzillo" wrote in message
news:5227992@discussion.autodesk.com...
No, it is not possible, without disabling VBA entirely.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5227563@discussion.autodesk.com...
We do have some .dvb programs that are run, but I want to exclude all other
.dvb programs from running in Autocad. Is this even possible? I want to
prevent people from loading any old macro in acad.
0 Likes
Message 11 of 14

Anonymous
Not applicable
I don't know how that keep them from using a different "acaddoc.lsp"?
"Dave Preston" wrote in message
news:5228902@discussion.autodesk.com...
By an administrator taking ownership of the file and not allowing users \
domain users privileges to overwrite or change the file

--
Regards
Dave Preston
<-
"Paul Richardson" wrote in message
news:5228032@discussion.autodesk.com...
What is to keep the user from defining another 'acaddoc.lsp' and putting
in above the other in the search path? Or just changing the attributes of
the
existing 'acaddoc.lsp'.

"Dave Preston" wrote in message
news:5228003@discussion.autodesk.com...
Is it possible to have an acaddoc.lsp in the AutoCAD support directory with
read-only access so a user cannot delete or edit it, that runs a VBA. This
VBA could check all loaded VBAs and unload any that are not in a list in the
VBA. This could also be run for a common event like BeginCommand

--
Regards
Dave Preston
<-
"Tony Tanzillo" wrote in message
news:5227992@discussion.autodesk.com...
No, it is not possible, without disabling VBA entirely.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5227563@discussion.autodesk.com...
We do have some .dvb programs that are run, but I want to exclude all other
.dvb programs from running in Autocad. Is this even possible? I want to
prevent people from loading any old macro in acad.
0 Likes
Message 12 of 14

Anonymous
Not applicable
Hi Dave,

Read Paul's reply. It doesn't matter what control there is of the "default"
"AcadDoc.lsp" a user can create another one in another directory and place
that directory higher in the Search path list.

One of the ings about this topic which has fascinated me is why DVB files
are worse than any other customisation files which a user may wish to run.

A paranoid IT guy should be trying to stop Scripts, Lisp, ARX, Diesel, menu
edits etc. as well a DVB.


--

Laurie Comerford
CADApps
www.cadapps.com.au
"Dave Preston" wrote in message
news:5228902@discussion.autodesk.com...
By an administrator taking ownership of the file and not allowing users \
domain users privileges to overwrite or change the file

--
Regards
Dave Preston
<-
"Paul Richardson" wrote in message
news:5228032@discussion.autodesk.com...
What is to keep the user from defining another 'acaddoc.lsp' and putting
in above the other in the search path? Or just changing the attributes of
the
existing 'acaddoc.lsp'.

"Dave Preston" wrote in message
news:5228003@discussion.autodesk.com...
Is it possible to have an acaddoc.lsp in the AutoCAD support directory with
read-only access so a user cannot delete or edit it, that runs a VBA. This
VBA could check all loaded VBAs and unload any that are not in a list in the
VBA. This could also be run for a common event like BeginCommand

--
Regards
Dave Preston
<-
"Tony Tanzillo" wrote in message
news:5227992@discussion.autodesk.com...
No, it is not possible, without disabling VBA entirely.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5227563@discussion.autodesk.com...
We do have some .dvb programs that are run, but I want to exclude all other
.dvb programs from running in Autocad. Is this even possible? I want to
prevent people from loading any old macro in acad.
0 Likes
Message 13 of 14

Anonymous
Not applicable
A user doesn't even have to alter the search
path to prevent loading of a given .LSP file.

All they must do is put a file of the same name
in the current drawing's folder, or another folder
that is processed before the ones on the search
path.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Dave Preston" wrote in message news:5228902@discussion.autodesk.com...
By an administrator taking ownership of the file and not allowing users \
domain users privileges to overwrite or change the file

--
Regards
Dave Preston
<-
"Paul Richardson" wrote in message
news:5228032@discussion.autodesk.com...
What is to keep the user from defining another 'acaddoc.lsp' and putting
in above the other in the search path? Or just changing the attributes of
the
existing 'acaddoc.lsp'.

"Dave Preston" wrote in message
news:5228003@discussion.autodesk.com...
Is it possible to have an acaddoc.lsp in the AutoCAD support directory with
read-only access so a user cannot delete or edit it, that runs a VBA. This
VBA could check all loaded VBAs and unload any that are not in a list in the
VBA. This could also be run for a common event like BeginCommand

--
Regards
Dave Preston
<-
"Tony Tanzillo" wrote in message
news:5227992@discussion.autodesk.com...
No, it is not possible, without disabling VBA entirely.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5227563@discussion.autodesk.com...
We do have some .dvb programs that are run, but I want to exclude all other
.dvb programs from running in Autocad. Is this even possible? I want to
prevent people from loading any old macro in acad.
0 Likes
Message 14 of 14

Anonymous
Not applicable
Oh well, I tried and failed - never mind 8-)

--
Regards
Dave Preston
<-
"Tony Tanzillo" wrote in message
news:5229686@discussion.autodesk.com...
A user doesn't even have to alter the search
path to prevent loading of a given .LSP file.

All they must do is put a file of the same name
in the current drawing's folder, or another folder
that is processed before the ones on the search
path.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Dave Preston" wrote in message
news:5228902@discussion.autodesk.com...
By an administrator taking ownership of the file and not allowing users \
domain users privileges to overwrite or change the file

--
Regards
Dave Preston
<-
"Paul Richardson" wrote in message
news:5228032@discussion.autodesk.com...
What is to keep the user from defining another 'acaddoc.lsp' and putting
in above the other in the search path? Or just changing the attributes of
the
existing 'acaddoc.lsp'.

"Dave Preston" wrote in message
news:5228003@discussion.autodesk.com...
Is it possible to have an acaddoc.lsp in the AutoCAD support directory with
read-only access so a user cannot delete or edit it, that runs a VBA. This
VBA could check all loaded VBAs and unload any that are not in a list in the
VBA. This could also be run for a common event like BeginCommand

--
Regards
Dave Preston
<-
"Tony Tanzillo" wrote in message
news:5227992@discussion.autodesk.com...
No, it is not possible, without disabling VBA entirely.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5227563@discussion.autodesk.com...
We do have some .dvb programs that are run, but I want to exclude all other
.dvb programs from running in Autocad. Is this even possible? I want to
prevent people from loading any old macro in acad.
0 Likes