VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

control autocad main windown.

3 REPLIES 3
Reply
Message 1 of 4
doc_x
385 Views, 3 Replies

control autocad main windown.

hi !

How can I control autocad main windown, becoming it desable to close "x" ?

thanks for atention !

 

3 REPLIES 3
Message 2 of 4
Alfred.NESWADBA
in reply to: doc_x

Hi,

 

imho you will not get enough funcitonality with VBA to get real full control over the AutoCAD application window. E.g. to avoid that the user closes AutoCAD (what way ever, e.g. TaskManager should not be able to close AutoCAD? Or shot-down-process should not be able to close AutoCAD?).

The most control you will have with a program using Windows-API that plays with processes (watches processes and windows).

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 4
doc_x
in reply to: Alfred.NESWADBA

Thanks Alfred NESWADBA. I undestood! But is not there anyway to avoid user close de cad main window, programming with vb6 ? Only by windown's API ? Do not you have a code to send me to do it?

 

Message 4 of 4
doc_x
in reply to: doc_x

Hi,
I managed to create a lisp function that forces all output to an output that I created. I compiled this function transforming it into a arquivo.vlx that to do AutoCAD startup, does what I need.

Thank you for your attention!

 

doc_x

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost