だから私は進歩を作っていますが、私を放棄しませんか?
下のコードは、デザイン "amgstdpart" のすべての標準部分のサイクルを作ります...ビューの名前と説明を示します。... パラメータを変更するために、例えばもっと多くのことをすることができるようになりました。 コードで描画することも可能です。
Code:
パブリックサブprovarecuperopartiStandard()
acadmapplication への参照
mcad を acadmapplication として
mcad = thisdrawing.application.getinterfaceobject("acadmauto.acadmapplication")
' mcad2dstructmgrを取得する
mcad2dconstructmgr として dim structmgr
set structmgr = mcad.activedocument.structmgr2d
' 作成 mcad2dstdpartcompgroupdescriptor
mcad2dstdpartcomponentdescriptor としてコングループ1
設定コングループ1 = structmgr.create2dstdpartcomponentdescriptor
dim powviews1() として mcadstdpartcomponentviewdescriptor
powviews1 = structmgr.getsinglestdpartviewsformigr
dim view1 は、
dim powview1 として mcadstdpartcomponentviewdescriptor
powviews1の各ビュー1
'if typeof view1 は mcadstdpartcomponentviewdescriptor で、
'set powview1 =ビュー1
'icompgroup.addview powview1 の使い方
'msgbox "" は、
もしも
powview1 =ビュー1
msgboxビュー1.fullviewname & "-" & view1.name
次へ
エンドサブ