Civil:style-set-labelstyle-param

提供:GizmoLabs - だいたい CAD LISP なサイト
2025年4月24日 (木) 08:08時点におけるGizmon (トーク | 投稿記録)による版 (ページの作成:「{{BCAD_LISP_CIVIL}} ; 構文 : (civil:style-get-labelstyle-params ''nameOrEname'' ''styleCategory'' ''property'' ''value'' ) ; 機能 : styleCategory カテゴリ内の 名前または Ename で指定された Civil ラベルスタイルオブジェクトのすべての 'Dragged State' スタイル パラメータの DottedPair リストを返す。 ; 引数 :* nameOrEname: ラベルスタイルオブジェクト名の文字列または ename。 :* styleCate…」)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
構文
(civil:style-get-labelstyle-params nameOrEname styleCategory property value )


機能
styleCategory カテゴリ内の 名前または Ename で指定された Civil ラベルスタイルオブジェクトのすべての 'Dragged State' スタイル パラメータの DottedPair リストを返す。


引数
  • nameOrEname: ラベルスタイルオブジェクト名の文字列または ename。
  • styleCategory: ECivil3dLabelStyleCategory の値の組み合わせ
  • property : 新しい値を取得するためのラベルスタイルパラメータの文字列。
  • value : property に割り当てる新しい値。(integer | double | string | ename)


戻り値
(キー . 値)のドットペアリスト、または nil


メモ


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

(setq labelStyleNames (civil:style-get-labelstyles bcCivilPointLabel T))
("Default" "pointstyle1" "pointstyle2")

(setq style (civil:style-get-labelstyle "Default" bcCivilPointLabel))
<Entity name: 320044d0>

(setq params (civil:style-get-labelstyle-params "Default" bcCivilPointLabel))
(("TextStyle" . "Standard") ("Visible" . "On") ("Layer" . "") ("OrientationReference" . 0) ("ForcedInsertion" . 0) ("ReadabilityBias" . 1.91986217719376) ("PlanReadable" . "On") ("FlipAnchorsWithText" . "Off") ("forceInsideCurve" . "Off"))

(setq params (civil:style-get-labelstyle-params "Default" bcCivilPointLabel))
(("TextStyle" . "Standard") ("Visible" . "On") ("Layer" . "") ("OrientationReference" . 0) ("ForcedInsertion" . 0) ("ReadabilityBias" . 1.91986217719376) ("PlanReadable" . "On") ("FlipAnchorsWithText" . "Off") ("forceInsideCurve" . "Off"))

(civil:style-set-labelstyle-param "Default" bcCivilPointLabel "Visible" "OFF")
T

(setq params (civil:style-get-labelstyle-params "Default" bcCivilPointLabel))
(("TextStyle" . "Standard") ("Visible" . "Off") ("Layer" . "") ("OrientationReference" . 0) ("ForcedInsertion" . 0) ("ReadabilityBias" . 1.91986217719376) ("PlanReadable" . "On") ("FlipAnchorsWithText" . "Off") ("forceInsideCurve" . "Off"))

関連事項