Civil:style-set-displayparam

提供:GizmoLabs - だいたい CAD LISP なサイト
構文
(Civil:style-set-displayparams styleId orientation partName parameter value )


機能
指定されたパート partName に対して、styleId Civil Style オブジェクトによって提供される、指定された方向のすべてのスタイル パラメータのドットペアリストを返す。


引数
  • styleId : 問い合わせる(ラベルまたはシンボル)の ename。
  • orientation: スタイルの向き" の値のいずれか (メモを参照)
  • partName: civil:style-get-displaysettings で返される'Setting'文字列の一つ。
  • parameter: civil:style-get-displayparams で返されるパラメータの一つ。
  • value: parameter に割り当てる新しい値。(integer|double|string|ename)


戻り値
成功なら T、それ以外は NIL


メモ

  • orientationには、「Plan」 「Model」 「Profile」 「Section 」の文字列のいずれかを指定する。
  • partName は civil:style-get-displaysettings によって返される'Setting'文字列の1つ。
  • サポートされるスタイルオブジェクト: Civil3D Point "のラベルスタイル+シンボルスタイルは、将来のBricsCADバージョンで拡張される予定。


サンプル
(vl-load-civil)
T

(setq points (civil:pgroup-get-allpoints "_All points"))
(<Entity name: 6c1e30c0> <Entity name: 6c1e2940> <Entity name: 6c1e2980> <Entity name: 6c1e2ac0> <Entity name: 6c1e2a00> <Entity name: 6c1e2b00> <Entity name: 6c1e2700> <Entity name: 6c1e2b40> <Entity name: 6c1e2b80> <Entity name: 6c1e2c40>)

(setq pointename (nth 2 points))
<Entity name: 6c1e2980>

(setq styleId (civil:point-get-symbolid pointename))
<Entity name: 32003d50>


(setq res (civil:style-get-displayparams styleId "Plan" "Symbol"))
(("Visible" . "On") ("Color" . 256) ("Layer" . "") ("Linetype" . "ByLayer") ("LTScale" . 1.0) ("Lineweight" . -3) ("PlotStyleType" . 1) ("PlotStyleId" . ""))

(civil:style-set-displayparam styleId "Plan" "Symbol" "Visible" "Off")
T

(setq res (civil:style-get-displayparams styleId "Plan" "Symbol"))
(("Visible" . "Off") ("Color" . 256) ("Layer" . "") ("Linetype" . "ByLayer") ("LTScale" . 1.0) ("Lineweight" . -3) ("PlotStyleType" . 1) ("PlotStyleId" . "")) 



関連事項