Jump to content

Recommended Posts

Posted

Hi everbody

 

i usually use visual lisp for macro codes. But VBA forms are very powerfull for dialogs. So that i want to use visual lisp and vBA forms together.

Visual lisp code in below

.........

(vla-setvariable (active-document) "USERR1" 0)

(vla-setvariable (active-document) "USERR2" 0)

(vla-setvariable (active-document) "USERI1" 0)

(vla-setvariable (active-document) "USERS1" "")

(vla-setvariable (active-document) "USERS2" "")

(vla-setvariable (active-document) "USERS3" "")

 

(vl-vbaload "c:/Asm-Set/Acad-VBA/Kiris_ismi_duzenleme.dvb")

(setq applic (vlax-get-acad-object))

(vla-eval applic "kiris_ismi.show")

 

(if (= (vlax-variant-value (vla-getvariable (active-document) "USERS5")) ;_ end of vlax-variant-value

"T"

............

 

 

and VBA Form in below

c:\Documents and Settings\Alper ERDURMAZ\Desktop\aaa.bmp

 

When runing code VBA form shows properly but when press layer button on form autocad crosshair doesnt shown. So that i cant select any entity.

 

Is there any solution about this problem. Please help me

Posted

thanks a lot

I try OpenDCL for dialaogs

at first sight it seems very good.

thanks your interests

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...