Show Form Without For Autocad Execution

Show Form Without For Autocad Execution

Anonymous
Not applicable
1,355 Views
1 Reply
Message 1 of 2

Show Form Without For Autocad Execution

Anonymous
Not applicable

 - How to create a window (form) that stays open all the time without for running Autocad?

 - Same window property where I can see the information of the selected object.

 - I tried to create a form, but calling "form.show" the background autocad is stalled until the form is closed.

Example:

Capturar.PNG

0 Likes
1,356 Views
1 Reply
Reply (1)
Message 2 of 2

norman.yuan
Mentor
Mentor

<QUOTE>- How to create a window (form) that stays open all the time without for running Autocad?</QUOTE>

Since you post question in AutoCAD VBA forum, I assume you want to create a form (UserForm in VBA term) in AutoCAD's VBA, so, you run AutoCAD in order to use AutoCAD VBA. If you have proper software development tool (Visual Studio, for example), you may be able to develop something outside AutoCAD, which can read *.DWG file and show properties of entities in the drawing, with running AutoCAD separately, via AutoCAD's COM API.

 

<QUOTE>- Same window property where I can see the information of the selected object</QUOTE>

With 64-bit AutoCAD (thus 64-bit VBA), it would be extremely difficult (if ever possible) to build a form/UI like AUtoCAD's properties window. Even you are very capable VBA programmer, it is not worth the effort.

 

<QUOTE>- I tried to create a form, but calling "form.show" the background autocad is stalled until the form is closed</QUOTE>

UserForm.Show() display the form as MODAL dialog, meaning the dialog box will blockuser interaction with AutoCAD until it is dismissed (but the code execution from the form can still let AutoCAD do things as the code instructed). While AutoCAD VBA's form can be shown as float window (MODELESS dialog), so that user interaction with AutoCAD is not blocked, I strongly recommend not use it. in most cases (if not all cases).

 

It looks like you want to use AutoCAD VBA to achieve same/similar UI as AutoCAD's property window. If so, I suggest you drop the idea. Learning AutoCAD .NET API would allow you to reach similar goal (but the learning curve for AutoCAD .NET API itself may be the other challenge, big or small, depending on your programming/AutoCAD knowledge/skill).

Norman Yuan

Drive CAD With Code

EESignature

0 Likes