「Vla-put-centerplot」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
(ページの作成:「{{AutoLISP}} ; 構文 : (vla-put-centerplot ''vla-object'' ''bool'') ; 機能 : 用紙の中央に印刷するオプションを設定する。 ; 引数 :* vla-obje...」)
 
編集の要約なし
 
10行目: 10行目:
; 引数
; 引数
:* vla-object … VLAオブジェクト
:* vla-object … VLAオブジェクト
:* bool … :vlax-true or :vlax-false
:* bool … ブール
 
::* :vlax-true : 中央に印刷 ON
::* :vlax-false : 中央に印刷 OFF


; 戻り値
; 戻り値
19行目: 20行目:
; サンプル
; サンプル
<pre class="brush:autolisp;">
<pre class="brush:autolisp;">
(setq *ActDoc* (vla-get-ActiveDocument (vlax-get-Acad-Object)))
(setq *actlay* (vla-get-ActiveLayout (vla-get-activedocument (vlax-get-acad-object))))
(setq *Aclay* (vla-get-Activelayout *actdoc*))


(vla-put-CenterPlot *Aclay* :vlax-true)
(vla-put-configname *actlay* "A3-printer1.pc3")
(vla-get-CenterPlot *Aclay*)
(vla-put-stylesheet *actlay* "monocrome.ctb")
 
(vla-put-canonicalmedianame *actlay* "UserDefinedMetric (594.00 X 841.00ミリ)")
(vla-put-CenterPlot *Aclay* :vlax-false)
(vla-put-centerplot *actlay* :vlax-true)
(vla-get-CenterPlot *Aclay*)
(vla-put-paperunits *actlay* 1)
(vla-put-plothidden *actlay* :vlax-true)
(vla-put-plotrotation *actlay* 1)
(vla-put-plottype *actlay* 4)
(vla-put-plotorigin *actlay* (vlax-make-safearray vlax-vbdouble (cons 0 1)))
(vla-put-plotwithplotstyles *actlay* :vlax-true)
(vla-put-scalelineweights *actlay* :vlax-true)
(vla-put-usestandardscale *actlay* :vlax-true)


</pre>
</pre>
32行目: 39行目:
-----
-----
関連事項
関連事項
<div class="mcol3">
* [[vlax-get-acad-object]]
* [[vlax-get-acad-object]]
* [[vla-get-activedocument]]
* [[vla-get-activedocument]]
* [[vla-get-activelayout]]
* [[vla-get-activelayout]]
* [[vla-get-configname]]
* [[vla-get-stylesheet]]
* [[vla-get-canonicalmedianame]]
* [[vla-get-centerplot]]
* [[vla-get-centerplot]]
 
* [[vla-get-paperunits]]
* [[vla-get-plothidden]]
* [[vla-get-plotrotation]]
* [[vla-get-plottype]]
* [[vla-get-plotorigin]]
* [[vla-get-plotwithplotstyles]]
* [[vla-get-scalelineweights]]
* [[vla-get-usestandardscale]]
* [[vla-get-windowstate]]
* [[vla-put-configname]]
* [[vla-put-stylesheet]]
* [[vla-put-canonicalmedianame]]
* [[vla-put-centerplot]]
* [[vla-put-paperunits]]
* [[vla-put-plothidden]]
* [[vla-put-plotrotation]]
* [[vla-put-plottype]]
* [[vla-put-plotorigin]]
* [[vla-put-plotwithplotstyles]]
* [[vla-put-scalelineweights]]
* [[vla-put-usestandardscale]]
* [[vla-put-windowstate]]
</div>


[[Category:AutoLISP]]
[[Category:AutoLISP]]

2013年3月24日 (日) 13:36時点における最新版

構文
(vla-put-centerplot vla-object bool)


機能
用紙の中央に印刷するオプションを設定する。


引数
  • vla-object … VLAオブジェクト
  • bool … ブール
  • :vlax-true : 中央に印刷 ON
  • :vlax-false : 中央に印刷 OFF
戻り値
nil


サンプル
(setq *actlay* (vla-get-ActiveLayout (vla-get-activedocument (vlax-get-acad-object))))

(vla-put-configname *actlay* "A3-printer1.pc3")
(vla-put-stylesheet *actlay* "monocrome.ctb")
(vla-put-canonicalmedianame *actlay* "UserDefinedMetric (594.00 X 841.00ミリ)")
(vla-put-centerplot *actlay* :vlax-true)
(vla-put-paperunits *actlay* 1)
(vla-put-plothidden *actlay* :vlax-true)
(vla-put-plotrotation *actlay* 1)
(vla-put-plottype *actlay* 4)
(vla-put-plotorigin *actlay* (vlax-make-safearray vlax-vbdouble (cons 0 1)))
(vla-put-plotwithplotstyles *actlay* :vlax-true)
(vla-put-scalelineweights *actlay* :vlax-true)
(vla-put-usestandardscale *actlay* :vlax-true)


関連事項