Tag: VBA
-
AutoCAD 2016 VBA の VB.Netへのマイグレーション手順の公開
過去の AutoCAD バージョン製品内で稼働済みの VBA マクロファイルを、AutoCAD 2016 製品上で実行可能な VB.Net カスタムコマンドとして変換するための Visual Studio 2012 開発環境を使用した マイグレーション手順を公開します。 これは、「QA-9622 AutoCAD 2016 VBA の VB.NET マイグレーション手順」 としても掲載されています。 Microsoft社は Visual Studio 2010 開発環境発表後 Visual Studio 2012 開発環境においても Visual Basic 6.0 のプロジェクト (.vbp ) の読み込み、および、自動変換をサポートしなくなりました。 一方、AutoCAD 2013 製品まで VBA の IDE 環境向けにリリースしておりました「マイグレーションツールである”マジックマクロ”」が現時点では AutoCAD 2016 向けにリリースされておらず、そのため、VBAマクロをAutoCAD 2016 VB.NET環境のカスタムコマンドにマイグレーションするには、マジックマクロなどで目的のVBAマクロを、一旦Visual Basic 6.0プロジェクト( .vbp )に変換したのちに、一度 Visual…
-
Removing an embedded VBA macro programmatically using Lisp
By Gopinath Taget You can embed VBA macros in a DWG file and in some situations, you might feel the need to get rid of the embedded macros. If so, the following lisp routine will help you remove the embedded macro: (defun removeEmbedMacro() (entdel (cdr(car (dictsearch (namedobjdict) "ACAD_VBA")))) ) In this lisp routine, we remove the…

You must be logged in to post a comment.