「Vla-関数」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
 
(同じ利用者による、間の53版が非表示)
1行目: 1行目:
==ActiveX からのトランスポート関数==
{{AutoLISP}}
==ActiveX(COM) からのトランスポート関数==


* VLA- の関数は、すべてのActiveX メソッドに対応している(多分)。メソッドを呼び出すためにこれらの関数を使用する。関数的には約1500程度ある。
* VLA-GET- の関数は、そのプロパティの値を取得できるように、すべてのActiveXプロパティに対応している。
* VLA-GET- の関数は、そのプロパティの値を取得できるように、すべてのActiveXプロパティに対応している。
* VLA-PUT- の関数は、プロパティの値を更新できるように、すべてのプロパティに対応している。
* VLA-PUT- の関数は、プロパティの値を更新できるように、更新可能なプロパティに対応している。
* VLA- の関数は、すべてのActiveXメソッドに対応している。メソッドを呼び出すためにこれらの関数を使用する。
* ActiveX のプロパティ、メソッド実装に引きずられるので CAD のバージョンによって増減するので注意。>> [[:Category:ActiveX CAD|ActiveXのカテゴリ]]
* ActiveX、VBA のプロパティ、メソッドに引きずられるので CAD のバージョンによって増えたりするので注意。
* ActiveXのない Mac版では当然の如く利用できないので、クロスプラットホームを考慮してコーディングする場合は、基本的に使えない。
* 他のAutoLISP関数よりデリケート。(特に互換CADでは)下手に作るとサクッとCADが落ちる。
* 他の AutoLISP 関数よりデリケート。下手に作るとサクッとCADが落ちたり固まったりするので注意。


* AutoCAD : 2000 から 事前に ([[vl-load-com]]) を実行しておくことで、VLA-関数を使用できるようになる。
* BricsCAD :V15から vla-関数をそのまま利用可能。さらに Fast-COM によってマルチOS対応する形で実装されていっている部分がある。Fast-COM 実装によるCOMのバイパスがいい意味での副作用になり対応する関数は最大1000%高速に動作する。([[vl-load-com]]) を実行しても影響ないので入れとくのが吉。
* IJCAD : 2013 そのまま利用可能だが、([[vl-load-com]]) を実行しても影響ないので入れとくのが吉。
* [[バージョン履歴とサポートAPI]]


以下vla-関数のリスト。
以下vla-関数のリスト。
13行目: 22行目:
<div class="mcol3">
<div class="mcol3">
* [[vla-activate]]
* [[vla-activate]]
* [[vla-add]]
* [[vla-anglefromxaxis]]
* [[vla-add3dface]]
* [[vla-angletoreal]]
* [[vla-add3dmesh]]
* [[vla-angletostring]]
* [[vla-add3dpoly]]
* [[vla-appendinnerloop]]
* [[vla-addarc]]
* [[vla-appenditems]]
* [[vla-addattribute]]
* [[vla-appendouterloop]]
* [[vla-addbox]]
* [[vla-appendvertex]]
* [[vla-addcircle]]
* [[vla-arraypolar]]
* [[vla-addcone]]
* [[vla-arrayrectangular]]
* [[vla-addcustominfo]]
* [[vla-attachexternalreference]]
* [[vla-addcustomobject]]
* [[vla-attachtoolbartoflyout]]
* [[vla-addcylinder]]
* [[vla-auditinfo]]
* [[vla-adddim3pointangular]]
* [[vla-bind]]
* [[vla-adddimaligned]]
* [[vla-block]]
* [[vla-adddimangular]]
* [[vla-boolean]]
* [[vla-adddimarc]]
* [[vla-checkinterference]]
* [[vla-adddimdiametric]]
* [[vla-clear]]
* [[vla-adddimordinate]]
* [[vla-clearsubselection]]
* [[vla-adddimradial]]
* [[vla-cleartablestyleoverrides]]
* [[vla-adddimradiallarge]]
* [[vla-clipboundary]]
* [[vla-adddimrotated]]
* [[vla-close]]
* [[vla-addellipse]]
* [[vla-converttoanonymousblock]]
* [[vla-addellipticalcone]]
* [[vla-converttostaticblock]]
* [[vla-addellipticalcylinder]]
* [[vla-copy]]
* [[vla-addextrudedsolid]]
* [[vla-copyfrom]]
* [[vla-addextrudedsolidalongpath]]
* [[vla-copyobjects]]
* [[vla-addfitpoint]]
* [[vla-copyprofile]]
* [[vla-addhatch]]
* [[vla-createentry]]
* [[vla-additems]]
* [[vla-createtypedarray]]
* [[vla-addleader]]
* [[vla-delete]]
* [[vla-addlightweightpolyline]]
* [[vla-deletecellcontent]]
* [[vla-addline]]
* [[vla-deletecolumns]]
* [[vla-addmenuitem]]
* [[vla-deleteconfiguration]]
* [[vla-addminsertblock]]
* [[vla-deletefitpoint]]
* [[vla-addmline]]
* [[vla-deleteprofile]]
* [[vla-addmtext]]
* [[vla-deleterows]]
* [[vla-addobject]]
* [[vla-detach]]
* [[vla-addpoint]]
* [[vla-display]]
* [[vla-addpolyfacemesh]]
* [[vla-displayplotpreview]]
* [[vla-addpolyline]]
* [[vla-distancetoreal]]
* [[vla-addpviewport]]
* [[vla-dock]]
* [[vla-addraster]]
* [[vla-elevateorder]]
* [[vla-addray]]
* [[vla-endundomark]]
* [[vla-addregion]]
* [[vla-erase]]
* [[vla-addrevolvedsolid]]
* [[vla-eval]]
* [[vla-addseparator]]
* [[vla-evaluate]]
* [[vla-addshape]]
* [[vla-explode]]
* [[vla-addsolid]]
* [[vla-export]]
* [[vla-addsphere]]
* [[vla-exportprofile]]
* [[vla-addspline]]
* [[vla-fieldcode]]
* [[vla-addsubmenu]]
* [[vla-float]]
* [[vla-addtable]]
* [[vla-generatelayout]]
* [[vla-addtext]]
* [[vla-generateusagedata]]
* [[vla-addtolerance]]
* [[vla-handletoobject]]
* [[vla-addtoolbarbutton]]
* [[vla-highlight]]
* [[vla-addtorus]]
* [[vla-hittest]]
* [[vla-addtrace]]
* [[vla-import]]
* [[vla-addvertex]]
* [[vla-importprofile]]
* [[vla-addwedge]]
* [[vla-indexof]]
* [[vla-addxline]]
* [[vla-initializeuserinput]]
* [[vla-addxrecord]]
* [[vla-insertblock]]
* [[vla-anglefromxaxis]]
* [[vla-insertcolumns]]
* [[vla-angletoreal]]
* [[vla-insertinmenubar]]
* [[vla-angletostring]]
* [[vla-insertloopat]]
* [[vla-appendinnerloop]]
* [[vla-insertmenuinmenubar]]
* [[vla-appenditems]]
* [[vla-insertrows]]
* [[vla-appendouterloop]]
* [[vla-intersectwith]]
* [[vla-appendvertex]]
* [[vla-ismergedcell]]
* [[vla-arraypolar]]
* [[vla-isremotefile]]
* [[vla-arrayrectangular]]
* [[vla-isurl]]
* [[vla-attachexternalreference]]
* [[vla-item]]
* [[vla-attachtoolbartoflyout]]
* [[vla-launchbrowserdialog]]
* [[vla-auditinfo]]
* [[vla-listarx]]
* [[vla-bind]]
* [[vla-load]]
* [[vla-block]]
* [[vla-loadarx]]
* [[vla-boolean]]
* [[vla-loaddvb]]
* [[vla-checkinterference]]
* [[vla-loadshapefile]]
* [[vla-clear]]
* [[vla-mergecells]]
* [[vla-clearsubselection]]
* [[vla-mirror]]
* [[vla-cleartablestyleoverrides]]
* [[vla-mirror3d]]
* [[vla-clipboundary]]
* [[vla-modified]]
* [[vla-close]]
* [[vla-move]]
* [[vla-converttoanonymousblock]]
* [[vla-moveabove]]
* [[vla-converttostaticblock]]
* [[vla-movebelow]]
* [[vla-copy]]
* [[vla-movetobottom]]
* [[vla-copyfrom]]
* [[vla-movetotop]]
* [[vla-copyobjects]]
* [[vla-new]]
* [[vla-copyprofile]]
* [[vla-numcustominfo]]
* [[vla-createentry]]
* [[vla-objectidtoobject]]
* [[vla-createtypedarray]]
* [[vla-offset]]
* [[vla-delete]]
* [[vla-open]]
* [[vla-deletecellcontent]]
* [[vla-plottodevice]]
* [[vla-deletecolumns]]
* [[vla-plottofile]]
* [[vla-deleteconfiguration]]
* [[vla-polarpoint]]
* [[vla-deletefitpoint]]
* [[vla-postcommand]]
* [[vla-deleteprofile]]
* [[vla-prompt]]
* [[vla-deleterows]]
* [[vla-purgeall]]
* [[vla-detach]]
* [[vla-purgefitdata]]
* [[vla-display]]
* [[vla-putremotefile]]
* [[vla-displayplotpreview]]
* [[vla-quit]]
* [[vla-distancetoreal]]
* [[vla-realtostring]]
* [[vla-dock]]
* [[vla-recomputetableblock]]
* [[vla-elevateorder]]
* [[vla-refreshplotdeviceinfo]]
* [[vla-endundomark]]
* [[vla-regen]]
* [[vla-erase]]
* [[vla-reload]]
* [[vla-eval]]
* [[vla-remove]]
* [[vla-evaluate]]
* [[vla-removecustombyindex]]
* [[vla-explode]]
* [[vla-removecustombykey]]
* [[vla-export]]
* [[vla-removeentry]]
* [[vla-exportprofile]]
* [[vla-removefrommenubar]]
* [[vla-fieldcode]]
* [[vla-removeitems]]
* [[vla-float]]
* [[vla-removemenufrommenubar]]
* [[vla-generatelayout]]
* [[vla-rename]]
* [[vla-generateusagedata]]
* [[vla-renameprofile]]
* [[vla-handletoobject]]
* [[vla-replace]]
* [[vla-highlight]]
* [[vla-reselectsubregion]]
* [[vla-hittest]]
* [[vla-resetblock]]
* [[vla-import]]
* [[vla-resetprofile]]
* [[vla-importprofile]]
* [[vla-restore]]
* [[vla-indexof]]
* [[vla-reverse]]
* [[vla-initializeuserinput]]
* [[vla-rotate]]
* [[vla-insertblock]]
* [[vla-rotate3d]]
* [[vla-insertcolumns]]
* [[vla-runmacro]]
* [[vla-insertinmenubar]]
* [[vla-save]]
* [[vla-insertloopat]]
* [[vla-saveas]]
* [[vla-insertmenuinmenubar]]
* [[vla-scaleentity]]
* [[vla-insertrows]]
* [[vla-sectionsolid]]
* [[vla-intersectwith]]
* [[vla-select]]
* [[vla-ismergedcell]]
* [[vla-selectatpoint]]
* [[vla-isremotefile]]
* [[vla-selectbypolygon]]
* [[vla-isurl]]
* [[vla-selectonscreen]]
* [[vla-item]]
* [[vla-selectsubregion]]
* [[vla-launchbrowserdialog]]
* [[vla-sendcommand]]
* [[vla-listarx]]
* [[vla-sendmodelessoperationended]]
* [[vla-load]]
* [[vla-sendmodelessoperationstart]]
* [[vla-loadarx]]
* [[vla-setalignment]]
* [[vla-loaddvb]]
* [[vla-setautoscale]]
* [[vla-loadshapefile]]
* [[vla-setbackgroundcolor]]
* [[vla-mergecells]]
* [[vla-setbackgroundcolornone]]
* [[vla-mirror]]
* [[vla-setbitmaps]]
* [[vla-mirror3d]]
* [[vla-setblockattributevalue]]
* [[vla-modified]]
* [[vla-setblockattributevalue2]]
* [[vla-move]]
* [[vla-setblockrotation]]
* [[vla-moveabove]]
* [[vla-setblockscale]]
* [[vla-movebelow]]
* [[vla-setblocktablerecordid]]
* [[vla-movetobottom]]
* [[vla-setblocktablerecordid2]]
* [[vla-movetotop]]
* [[vla-setblocktablerecordid232]]
* [[vla-new]]
* [[vla-setbulge]]
* [[vla-numcustominfo]]
* [[vla-setcellalignment]]
* [[vla-objectidtoobject]]
* [[vla-setcellbackgroundcolor]]
* [[vla-offset]]
* [[vla-setcellbackgroundcolornone]]
* [[vla-open]]
* [[vla-setcellcontentcolor]]
* [[vla-plottodevice]]
* [[vla-setcellgridcolor]]
* [[vla-plottofile]]
* [[vla-setcellgridlineweight]]
* [[vla-polarpoint]]
* [[vla-setcellgridvisibility]]
* [[vla-prompt]]
* [[vla-setcelltextheight]]
* [[vla-purgeall]]
* [[vla-setcelltextstyle]]
* [[vla-purgefitdata]]
* [[vla-setcelltype]]
* [[vla-putremotefile]]
* [[vla-setcolor]]
* [[vla-qty]]
* [[vla-setcolorbookcolor]]
* [[vla-quit]]
* [[vla-setcolumnwidth]]
* [[vla-realtostring]]
* [[vla-setcontentcolor]]
* [[vla-recomputetableblock]]
* [[vla-setcontentcolor2]]
* [[vla-refreshplotdeviceinfo]]
* [[vla-setcontrolpoint]]
* [[vla-regen]]
* [[vla-setcustombyindex]]
* [[vla-reload]]
* [[vla-setcustombykey]]
* [[vla-remove]]
* [[vla-setcustomscale]]
* [[vla-removecustombyindex]]
* [[vla-setdatabase]]
* [[vla-removecustombykey]]
* [[vla-setdoglegdirection]]
* [[vla-removeentry]]
* [[vla-setfieldid]]
* [[vla-removefrommenubar]]
* [[vla-setfitpoint]]
* [[vla-removeitems]]
* [[vla-setfont]]
* [[vla-removemenufrommenubar]]
* [[vla-setgridcolor]]
* [[vla-rename]]
* [[vla-setgridlineweight]]
* [[vla-renameprofile]]
* [[vla-setgridspacing]]
* [[vla-replace]]
* [[vla-setgridvisibility]]
* [[vla-reselectsubregion]]
* [[vla-setinvisibleedge]]
* [[vla-resetblock]]
* [[vla-setlayoutstoplot]]
* [[vla-resetprofile]]
* [[vla-setnames]]
* [[vla-restore]]
* [[vla-setpattern]]
* [[vla-reverse]]
* [[vla-setprojectfilepath]]
* [[vla-rotate]]
* [[vla-setrelativedraworder]]
* [[vla-rotate3d]]
* [[vla-setrgb]]
* [[vla-runmacro]]
* [[vla-setrowheight]]
* [[vla-save]]
* [[vla-setsnapspacing]]
* [[vla-saveas]]
* [[vla-setsubselection]]
* [[vla-scaleentity]]
* [[vla-settext]]
* [[vla-sectionsolid]]
* [[vla-settextheight]]
* [[vla-select]]
* [[vla-settextrotation]]
* [[vla-selectatpoint]]
* [[vla-settextstyle]]
* [[vla-selectbypolygon]]
* [[vla-settextstyle2]]
* [[vla-selectonscreen]]
* [[vla-settextstyleid]]
* [[vla-selectsubregion]]
* [[vla-settextstyleid32]]
* [[vla-sendcommand]]
* [[vla-setvariable]]
* [[vla-sendmodelessoperationended]]
* [[vla-setview]]
* [[vla-sendmodelessoperationstart]]
* [[vla-setweight]]
* [[vla-setalignment]]
* [[vla-setwidth]]
* [[vla-setautoscale]]
* [[vla-setwindowtoplot]]
* [[vla-setbackgroundcolor]]
* [[vla-setxdata]]
* [[vla-setbackgroundcolornone]]
* [[vla-setxrecorddata]]
* [[vla-setbitmaps]]
* [[vla-slicesolid]]
* [[vla-setblockattributevalue]]
* [[vla-split]]
* [[vla-setblockrotation]]
* [[vla-startbatchmode]]
* [[vla-setblockscale]]
* [[vla-startundomark]]
* [[vla-setblocktablerecordid]]
* [[vla-swaporder]]
* [[vla-setbulge]]
* [[vla-syncmodelview]]
* [[vla-setcellalignment]]
* [[vla-transformby]]
* [[vla-setcellbackgroundcolor]]
* [[vla-translatecoordinates]]
* [[vla-setcellbackgroundcolornone]]
* [[vla-unload]]
* [[vla-setcellcontentcolor]]
* [[vla-unloadarx]]
* [[vla-setcellgridcolor]]
* [[vla-unloaddvb]]
* [[vla-setcellgridlineweight]]
* [[vla-unmergecells]]
* [[vla-setcellgridvisibility]]
* [[vla-update]]
* [[vla-setcelltextheight]]
* [[vla-updateentry]]
* [[vla-setcelltextstyle]]
* [[vla-wblock]]
* [[vla-setcelltype]]
* [[vla-zoomall]]
* [[vla-setcolor]]
* [[vla-zoomcenter]]
* [[vla-setcolorbookcolor]]
* [[vla-zoomextents]]
* [[vla-setcolumnwidth]]
* [[vla-zoompickwindow]]
* [[vla-setcontentcolor]]
* [[vla-zoomprevious]]
* [[vla-setcontrolpoint]]
* [[vla-zoomscaled]]
* [[vla-setcustombyindex]]
* [[vla-zoomwindow]]
* [[vla-setcustombykey]]
</div>
* [[vla-setcustomscale]]
 
* [[vla-setdatabase]]
==VLA-ADD==
* [[vla-setfieldid]]
* VLA-ADD 系関数はオブジェクトの追加。細かいプロパティの指定ができないので、作ってから調整するか事前にプロパティ整えてから作るとかする必要がある。
* [[vla-setfitpoint]]
そのため、図形の追加は、簡単に済ますなら [[command]]や[[command-s]][[vl-cmdf]]、速度を求めるなら [[entmake]] を使うほうがいいかも。
* [[vla-setfont]]
<div class="mcol3">
* [[vla-setgridcolor]]
* [[vla-add]]
* [[vla-setgridlineweight]]
* [[vla-add3dface]]
* [[vla-setgridspacing]]
* [[vla-add3dmesh]]
* [[vla-setgridvisibility]]
* [[vla-add3dpoly]]
* [[vla-setinvisibleedge]]
* [[vla-addarc]]
* [[vla-setlayoutstoplot]]
* [[vla-addattribute]]
* [[vla-setnames]]
* [[vla-addbox]]
* [[vla-setpattern]]
* [[vla-addcircle]]
* [[vla-setprojectfilepath]]
* [[vla-addcone]]
* [[vla-setrelativedraworder]]
* [[vla-addcustominfo]]
* [[vla-setrgb]]
* [[vla-addcustomobject]]
* [[vla-setrowheight]]
* [[vla-addcylinder]]
* [[vla-setsnapspacing]]
* [[vla-adddim3pointangular]]
* [[vla-setsubselection]]
* [[vla-adddimaligned]]
* [[vla-settext]]
* [[vla-adddimangular]]
* [[vla-settextheight]]
* [[vla-adddimarc]]
* [[vla-settextrotation]]
* [[vla-adddimdiametric]]
* [[vla-settextstyle]]
* [[vla-adddimordinate]]
* [[vla-setvariable]]
* [[vla-adddimradial]]
* [[vla-setview]]
* [[vla-adddimradiallarge]]
* [[vla-setweight]]
* [[vla-adddimrotated]]
* [[vla-setwidth]]
* [[vla-addellipse]]
* [[vla-setwindowtoplot]]
* [[vla-addellipticalcone]]
* [[vla-setxdata]]
* [[vla-addellipticalcylinder]]
* [[vla-setxrecorddata]]
* [[vla-addextrudedsolid]]
* [[vla-slicesolid]]
* [[vla-addextrudedsolidalongpath]]
* [[vla-split]]
* [[vla-addfitpoint]]
* [[vla-startbatchmode]]
* [[vla-addhatch]]
* [[vla-startundomark]]
* [[vla-additems]]
* [[vla-swaporder]]
* [[vla-addleader]]
* [[vla-syncmodelview]]
* [[vla-addlightweightpolyline]]
* [[vla-transformby]]
* [[vla-addline]]
* [[vla-translatecoordinates]]
* [[vla-addmenuitem]]
* [[vla-unload]]
* [[vla-addminsertblock]]
* [[vla-unloadarx]]
* [[vla-addmleader]]
* [[vla-unloaddvb]]
* [[vla-addmline]]
* [[vla-unmergecells]]
* [[vla-addmtext]]
* [[vla-update]]
* [[vla-addobject]]
* [[vla-updateentry]]
* [[vla-addpoint]]
* [[vla-wblock]]
* [[vla-addpolyfacemesh]]
* [[vla-zoomall]]
* [[vla-addpolyline]]
* [[vla-zoomcenter]]
* [[vla-addpviewport]]
* [[vla-zoomextents]]
* [[vla-addraster]]
* [[vla-zoompickwindow]]
* [[vla-addray]]
* [[vla-zoomprevious]]
* [[vla-addregion]]
* [[vla-zoomscaled]]
* [[vla-addrevolvedsolid]]
* [[vla-zoomwindow]]
* [[vla-addsection]]
* [[vla-addseparator]]
* [[vla-addshape]]
* [[vla-addsolid]]
* [[vla-addsphere]]
* [[vla-addspline]]
* [[vla-addsubmenu]]
* [[vla-addtable]]
* [[vla-addtext]]
* [[vla-addtolerance]]
* [[vla-addtoolbarbutton]]
* [[vla-addtorus]]
* [[vla-addtrace]]
* [[vla-addvertex]]
* [[vla-addwedge]]
* [[vla-addxline]]
* [[vla-addxrecord]]
</div>
</div>


==VLA-GET==
==VLA-GET-==
* VLA-GET- は大体プロパティ値の取得
<div class="mcol3">
<div class="mcol3">
* [[vla-get-action]]
* [[vla-get-action]]
394行目: 420行目:
* [[vla-get-clippingenabled]]
* [[vla-get-clippingenabled]]
* [[vla-get-closed]]
* [[vla-get-closed]]
* [[vla-get-closed2]]
* [[vla-get-color]]
* [[vla-get-color]]
* [[vla-get-colorbookpath]]
* [[vla-get-colorbookpath]]
537行目: 564行目:
* [[vla-get-horzcellmargin]]
* [[vla-get-horzcellmargin]]
* [[vla-get-hwnd]]
* [[vla-get-hwnd]]
* [[vla-get-hwnd32]]
* [[vla-get-hyperlinkbase]]
* [[vla-get-hyperlinkbase]]
* [[vla-get-hyperlinkdisplaycursor]]
* [[vla-get-hyperlinkdisplaycursor]]
930行目: 958行目:
* [[vla-getbitmaps]]
* [[vla-getbitmaps]]
* [[vla-getblockattributevalue]]
* [[vla-getblockattributevalue]]
* [[vla-getblockattributevalue2]]
* [[vla-getblockrotation]]
* [[vla-getblockrotation]]
* [[vla-getblockscale]]
* [[vla-getblockscale]]
* [[vla-getblocktablerecordid]]
* [[vla-getblocktablerecordid]]
* [[vla-getblocktablerecordid2]]
* [[vla-getblocktablerecordid232]]
* [[vla-getboundingbox]]
* [[vla-getboundingbox]]
* [[vla-getbulge]]
* [[vla-getbulge]]
965行目: 996行目:
* [[vla-getfont]]
* [[vla-getfont]]
* [[vla-getfulldraworder]]
* [[vla-getfulldraworder]]
* [[vla-getgcadstate]]
* [[vla-getgridcolor]]
* [[vla-getgridcolor]]
* [[vla-getgridlineweight]]
* [[vla-getgridlineweight]]
1,009行目: 1,041行目:
</div>
</div>


==VLA-PUT==
==VLA-PUT-==
* VLA-PUT- の関数は大体プロパティ値の設定
<div class="mcol3">
<div class="mcol3">
* [[vla-put-action]]
* [[vla-put-action]]
1,099行目: 1,132行目:
* [[vla-put-clippingenabled]]
* [[vla-put-clippingenabled]]
* [[vla-put-closed]]
* [[vla-put-closed]]
* [[vla-put-closed2]]
* [[vla-put-color]]
* [[vla-put-color]]
* [[vla-put-colorbookpath]]
* [[vla-put-colorbookpath]]
1,500行目: 1,534行目:
* [[vla-put-zscalefactor]]
* [[vla-put-zscalefactor]]
</div>
</div>
-----
関連事項
* [[CADのActiveX メソッド]]
* [[CADのActiveX プロパティ]]
* [[CADのActiveX オブジェクトモデル]]
* [[ActiveX_オブジェクト処理]]
[[Category:AutoLISP]]
[[Category:ActiveX_CAD]]

2022年6月24日 (金) 05:44時点における最新版

ActiveX(COM) からのトランスポート関数

  • VLA- の関数は、すべてのActiveX メソッドに対応している(多分)。メソッドを呼び出すためにこれらの関数を使用する。関数的には約1500程度ある。
  • VLA-GET- の関数は、そのプロパティの値を取得できるように、すべてのActiveXプロパティに対応している。
  • VLA-PUT- の関数は、プロパティの値を更新できるように、更新可能なプロパティに対応している。
  • ActiveX のプロパティ、メソッド実装に引きずられるので CAD のバージョンによって増減するので注意。>> ActiveXのカテゴリ
  • ActiveXのない Mac版では当然の如く利用できないので、クロスプラットホームを考慮してコーディングする場合は、基本的に使えない。
  • 他の AutoLISP 関数よりデリケート。下手に作るとサクッとCADが落ちたり固まったりするので注意。


  • AutoCAD : 2000 から 事前に (vl-load-com) を実行しておくことで、VLA-関数を使用できるようになる。
  • BricsCAD :V15から vla-関数をそのまま利用可能。さらに Fast-COM によってマルチOS対応する形で実装されていっている部分がある。Fast-COM 実装によるCOMのバイパスがいい意味での副作用になり対応する関数は最大1000%高速に動作する。(vl-load-com) を実行しても影響ないので入れとくのが吉。
  • IJCAD : 2013 そのまま利用可能だが、(vl-load-com) を実行しても影響ないので入れとくのが吉。


以下vla-関数のリスト。

VLA-

VLA-ADD

  • VLA-ADD 系関数はオブジェクトの追加。細かいプロパティの指定ができないので、作ってから調整するか事前にプロパティ整えてから作るとかする必要がある。

そのため、図形の追加は、簡単に済ますなら commandcommand-svl-cmdf、速度を求めるなら entmake を使うほうがいいかも。

VLA-GET-

  • VLA-GET- は大体プロパティ値の取得

VLA-PUT-

  • VLA-PUT- の関数は大体プロパティ値の設定

関連事項