「Civil:style-set-labelstyle-param」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
(ページの作成:「{{BCAD_LISP_CIVIL}} ; 構文 : (civil:style-get-labelstyle-params ''nameOrEname'' ''styleCategory'' ''property'' ''value'' ) ; 機能 : styleCategory カテゴリ内の 名前または Ename で指定された Civil ラベルスタイルオブジェクトのすべての 'Dragged State' スタイル パラメータの DottedPair リストを返す。 ; 引数 :* nameOrEname: ラベルスタイルオブジェクト名の文字列または ename。 :* styleCate…」)
 
編集の要約なし
 
6行目: 6行目:


; 機能
; 機能
: styleCategory カテゴリ内の 名前または Ename で指定された Civil ラベルスタイルオブジェクトのすべての 'Dragged State' スタイル パラメータの DottedPair リストを返す。
: styleCategory カテゴリ内の 名前または Ename で指定された Civil ラベルスタイルオブジェクトの style パラメータプロパティに新しい値を割り当てる。




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




; 戻り値
; 戻り値
: (キー . 値)のドットペアリスト、または nil
: 成功なら T、それ以外は nil





2025年4月24日 (木) 08:13時点における最新版

構文
(civil:style-get-labelstyle-params nameOrEname styleCategory property value )


機能
styleCategory カテゴリ内の 名前または Ename で指定された Civil ラベルスタイルオブジェクトの style パラメータプロパティに新しい値を割り当てる。


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


戻り値
成功なら T、それ以外は 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"))

関連事項