Jump to content

how to launch macros then layers in autocad is selected


Robke

Recommended Posts

Hello all, i don't know if i'm right for writting here.

 

so i have some problems. some time ago i read that if you want to create self active program or how to say... erm... the programs which launches itself by cliking lines or something else in autocad... you should use Visual Studio (if i remember there is something for autocad visual basic express?).. and create code like module or patterns?

 

is there any possibility to create such a program using only VBA for 2012 autocad?

Link to comment
Share on other sites

The VBA automation module is integrated into AutoCAD and its routines may be associated with events - that it, the execution of code is triggered by a user action. However, please don't miss that VBA was discontinued and is still available as an optional enabler. So, you may invest your time in something that will be no longer around in a few years.

Rather than VBA may want to look to other solutions, AutoLISP or even .Net API. From my knowledge those cannot be associated with events, but there is a workaround, namely using reactors.

Link to comment
Share on other sites

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...