Smlispget

提供:GizmoLabs - だいたい CAD LISP なサイト
2025年7月13日 (日) 20:01時点におけるGizmon (トーク | 投稿記録)による版
構文
(Smlispget feature ... )


機能
(smlispget ...) 関数は可変の引数を使用する。
- すべての引数の組み合わせに関する一般的な要約は、 (smlispget "?") または (smlispget "help") で確認できる。
以下は、アルファベット順の全機能オプションのリスト。


引数
  • feature : フィーチャー
  • ... : 追加する値。


戻り値
フィーチャーにより色々。


サンプル
(smlispget "?")

AdjacentFeatures (隣接フィーチャー)
    入力:
      オプション:STR    ヒント: フィーチャー名
    出力: LIST of STR, 入力フィーチャーに隣接するフィーチャー名、または NIL
    例: (SmLispGet "AdjacentFeatures" "Flange_1")

AssumeSheetMetal (仮定シートメタル)
    入力:
      必須:ENAME    ヒント: 板金部品かどうかを判断するエンティティ名
      必須:REAL    ヒント: 展開部分の最大全体寸法。 寸法がない場合、または SmUnfold が失敗した場合は -1.0 を返す。
      必須:INT    ヒント: SmUnfoldコマンドの警告数。 SmUnfoldが失敗した場合は0を返す
    出力: STR, SheetMetal、NotSheetMetal、PoorSheetMetal、または NIL
    例: (SmLispGet "AssumeSheetMetal" (ssname(ssget) 0) 100.0 1)

BendAllowance (曲げ許容値)
    入力:
      必須:STR    ヒント: フィーチャー名
    出力: REAL, 指定されたフィーチャーがオーバーライドされた場合の有効な曲げ代。
    例: (SmLispGet "BendAllowance" "Bend_1")

BendAngle (曲げ角度)
    入力:
      必須:STR    ヒント: 曲げフィーチャー名
    出力: REAL, 曲げ角度の値、または NIL
    例: (SmLispGet "BendAngle" "Bend_1")

BendDeduction (曲げ展開長補正)
    入力:
      必須:STR    ヒント: フィーチャー名
    出力: REAL, 指定されたフィーチャーがオーバーライドされた場合の有効な曲げ補正。
    例: (SmLispGet "BendDeduction" "Bend_1")

BendLineExtent (曲げ線の延長 )
    入力: <empty>
    出力: REAL, 曲げ線範囲のデフォルト値、または NIL
    例: (SmLispGet "BendLineExtent")

BendLineExtentType (曲げ線の延長タイプ)
    入力: <empty>
    出力: STR, デフォルトの曲げ線延長タイプ: 太さ比、絶対値、または NIL
    例: (SmLispGet "BendLineExtentType")

BendRadius (曲げR)
    入力:
      必須:STR    ヒント: 曲げフィーチャー名
    出力: REAL, 曲げR値, または NIL
    例: (SmLispGet "BendRadius" "Bend_1")

BendTable (曲げテーブル)
    入力:
      オプション:STR    ヒント: 曲げフィーチャー名
    出力: STR, 相対パスで曲げテーブルを指定するか、NIL。どちらのオプションも指定されていない場合、グローバルコンテキスト用の曲げテーブルを返す。そうでない場合、指定されたフィーチャー用の曲げテーブルを返す。
    例: (SmLispGet "BendTable") or (SmLispGet "BendTable" "Bend_1")

BodyName (ボディ名)
    入力:
      必須:ENAME    ヒント: エンティティのボディ名を返す
    出力: STR, body name, or NIL
    例: (SmLispGet "BodyName" (ssname(ssget "_:V") 0))

CheckSheetMetalLicense (シートメタルライセンスチェック)
    入力: <empty>
    出力: シートメタルのライセンスが利用可能な場合は T、そうでない場合は NIL
    例: (SmLispGet "CheckSheetMetalLicense")

CommonPoint (一般点)
    入力:
      必須:STR    ヒント: マークされたエッジの最初の名前
      必須:STR    ヒント: マークされたエッジの2番目の名前
    出力: POINT, マーカーによって定義される辺の共通頂点の3次元座標、または NIL
    例: (SmLispGet "CommonPoint" "Marker_1" "Marker_2")

DefaultBendRadius (曲げR初期値)
    入力: <empty>
    出力: REAL, default bend radius value, or NIL
    例: (SmLispGet "DefaultBendRadius")

DefaultBendRadiusType (曲げRタイプ初期値)
    入力: <empty>
    出力: STR, default bend radius type: Thickness ratio, Absolute value, or NIL
    例: (SmLispGet "DefaultBendRadiusType")

DefaultBendReliefWidth (曲げリリーフ幅初期値)
    入力: <empty>
    出力: REAL, default bend relief width value, or NIL
    例: (SmLispGet "DefaultBendReliefWidth")

DefaultBendReliefWidthType (曲げリリーフ幅タイプ初期値)
    入力: <empty>
    出力: STR, default bend relief width type: Thickness ratio, Absolute value, or NIL
    例: (SmLispGet "DefaultBendReliefWidthType")

DefaultDieWidth (型幅初期値)
    入力: <empty>
    出力: REAL, global die width associated with document, or NIL
    例: (SmLispGet "DefaultDieWidth")

DefaultDieWidths (型幅初期値)
    入力: <empty>
    出力: LIST of REAL, list of global die widths available with document (loaded from bend table), or NIL
    例: (SmLispGet "DefaultDieWidths")

DefaultFlangeSplitExtension (フランジ分割延長初期値)
    入力: <empty>
    出力: REAL, default miter extension value, or NIL
    例: (SmLispGet "DefaultFlangeSplitExtension")

DefaultFlangeSplitExtensionType (フランジ分割延長タイプ初期値)
    入力: <empty>
    出力: STR, default miter extension type: Thickness ratio, Absolute value, or NIL
    例: (SmLispGet "DefaultFlangeSplitExtensionType")

DefaultFlangeSplitGap (フランジ分割ギャップ初期値)
    入力: <empty>
    出力: REAL, default miter gap value, or NIL
    例: (SmLispGet "DefaultFlangeSplitGap")

DefaultFlangeSplitGapType (フランジ分割ギャップタイプ初期値)
    入力: <empty>
    出力: STR, default miter gap type: Thickness ratio, Absolute value, or NIL
    例: (SmLispGet "DefaultFlangeSplitGapType")

DefaultJunctionGap (ジャンクション ギャップ初期値)
    入力: <empty>
    出力: REAL, default junction gap value, or NIL
    例: (SmLispGet "DefaultJunctionGap")

DefaultJunctionGapType (ジャンクション ギャップ タイプ初期値)
    入力: <empty>
    出力: STR, default junction gap type: Thickness ratio, Absolute value, or NIL
    例: (SmLispGet "DefaultJunctionGapType")

DefaultKFactor (曲げ半径ファクター初期値)
    入力: <empty>
    出力: REAL, default thickness ratio of the neutral surface when bending, 0 (inner radius) to 1 (outer radius), or NIL
    例: (SmLispGet "DefaultKFactor")

DefaultReliefExtension (レリーフ延長初期値)
    入力: <empty>
    出力: REAL, default relief extension value, or NIL
    例: (SmLispGet "DefaultReliefExtension")

DefaultReliefExtensionType (レリーフ延長タイプ初期値)
    入力: <empty>
    出力: STR, default relief extension type: Thickness ratio, Absolute value, or NIL
    例: (SmLispGet "DefaultReliefExtensionType")

DefaultRibProfileRadius (レリーフ プロファイル半径初期値)
    入力: <empty>
    出力: REAL, default rib profile radius value, or NIL
    例: (SmLispGet "DefaultRibProfileRadius")

DefaultRibProfileRadiusType (レリーフ プロファイル半径タイプ初期値)
    入力: <empty>
    出力: STR, default rib profile radius type: Thickness ratio, Absolute value, or NIL
    例: (SmLispGet "DefaultRibProfileRadiusType")

DefaultRibRoundRadius (リブ曲率半径初期値)
    入力: <empty>
    出力: REAL, default rib round radius value, or NIL
    例: (SmLispGet "DefaultRibRoundRadius")

DefaultRibRoundRadiusType (リブ曲率半径タイプ初期値)
    入力: <empty>
    出力: STR, default rib round radius type: Thickness ratio, Absolute value, or NIL
    例: (SmLispGet "DefaultRibRoundRadiusType")

DieWidth (型幅初期値)
    入力:
      必須:STR    ヒント: Bend feature name
    出力: REAL, die width for given bend feature, or NIL
    例: (SmLispGet "DieWidth" "Bend_1")

EntitiesByFeature (フィーチャー毎のエンティティ)
    入力:
      必須:STR    ヒント: Feature name
    出力: LIST of ENAMES, list of entities related with feature, or NIL
    例: (SmLispGet "EntitiesByFeature" "Flange_1")

Features (フィーチャー)
    入力: <empty>
    出力: LIST of STR, names of features, or NIL
    例: (SmLispGet "Features")

FeaturesByEntity (エンティティ毎のフィーチャー)
    入力:
      必須:ENAME    ヒント: Entity
    出力: LIST of STR, names of features on the entity, or NIL
    例: (SmLispGet "FeaturesByEntity" (ssname(ssget "_:V") 0))

FeaturesBySubEntity (サブエンティティ毎のフィーチャー)
    入力:
      必須:PICKSET    ヒント: Subentity
    出力: LIST of STR, names of features using subentity, or NIL
    例: (SmLispGet "FeaturesBySubEntity" (ssget "_:V"))

FeatureType (フィーチャータイプ)
    入力:
      必須:STR    ヒント: Feature name
    出力: STR, feature type, or NIL
    例: (SmLispGet "FeatureType" "Flange_1")

FormFeatureUnfoldMode (フォームフィーチャー展開モード)
    入力:
      必須:STR    ヒント: Form feature unfold mode
    出力: STR, determines appearance of form features in unfolded part: Keep, Remove, Project, Contour, Symbol, or NIL
    例: (SmLispGet "FormFeatureUnfoldMode")

HardEdges (ハードエッジ)
    入力:
      必須:STR    ヒント: Side of the first flange (top or bottom)
      必須:STR    ヒント: First flange name
      必須:STR    ヒント: Second flange name
    出力: STR, selected found hard edges, or NIL
    例: (SmLispGet "HardEdges" "Top or Bottom" "Flange_1" "Flange_2")

HasEntityFeatures (エンティティフィーチャーの有無)
    入力:
      オプション:ENAME    ヒント: Entity,  if you selected entity, the argument can be missed
    出力: T if entity has features, else NIL
    例: (SmLispGet "HasEntityFeatures" (ssname (ssget) 0))

HasSheetMetalContext (シートメタル属性の有無)
    入力: <empty>
    出力: T if sheet metal context exists, else NIL
    例: (SmLispGet "HasSheetMetalContext")

Help (ヘルプ)
    入力:
      オプション:STR    ヒント: Getting the help for all options or for one option
      オプション:T    ヒント: Switches to query mode and allows to check existence of some option. If T is set, function returns T if option with asked name exists, else returns NIL
    出力: options help. In query mode returns T if asked option exists, else NIL
    例: (SmLispGet "Help") or (SmLispGet "Help" "Help") or (SmLispGet "?") or (SmLispGet "?" "Help") or (SmLispGet "?" "Help" T)

IsClosed (閉じ状態)
    入力:
      必須:STR    ヒント: Lofted bend feature name
    出力: T if lofted bend is closed, else NIL
    例: (SmLispGet "IsClosed" "LoftedBend_1")

IsEdgeConvex (凸状態)
    入力:
      必須:Selected hard edges     ヒント: see option "HardEdges"
    出力: T if edge convex, else NIL
    例: (SmLispGet "IsEdgeConvex")

IsExplodable (分解可能状態)
    入力:
      必須:STR    ヒント: Form or rib feature name
    出力: T if form or rib feature can be exploded, else NIL
    例: (SmLispGet "IsExplodable" "Form_1")

IsFeatureValid (機能有効状態)
    入力:
      必須:STR    ヒント: Feature name
    出力: "T" if feature exists and is valid; "F" if feature exists and is not valid. NIL in other cases
    例: (SmLispGet "IsFeatureValid" "Flange_1")

IsLinearSolid (線形固体状態)
    入力:
      必須:ENAME    ヒント: Entity to determine if it is linear solid
    出力: STR, combination of Linear, Hollow and Circle strings or NIL
    例: (SmLispGet "IsLinearSolid" (ssname(ssget) 0))

KFactor (曲げ半径ファクター)
    入力:
      必須:STR    ヒント: Feature name
    出力: REAL, effective KFactor for given feature if it was overrriden, or NIL
    例: (SmLispGet "KFactor" "Bend_1")

LoftedBendUnfoldMode (ロフト曲げ展開モード)
    入力:
      オプション:STR    ヒント: Lofted bend feature name
    出力: STR, unfolding mode of lofted bend feature: Analytical, Quadrangulation, Triangulation or NIL
    例: (SmLispGet "LoftedBendUnfoldMode" "LoftedBend_1")

NumberSamples (ロフト曲げサンプル数)
    入力:
      必須:STR    ヒント: Lofted bend feature name
    出力: Positive integer, ロフト曲げに使用したサンプル数を示す。
    例: (SmLispGet "NumberSamples" "LoftedBend_1")

RibControlCurve (リブ制御曲線)
    入力:
      オプション:STR    ヒント: Feature name
    出力: ENAME, entity for 2D control curve
    例: (SmLispGet "RibControlCurve" "Rib_1")

RibProfileRadius (リブプロファイル半径)
    入力:
      必須:STR    ヒント: Rib feature name
    出力: REAL, profile radius value, or NIL
    例: (SmLispGet "RibProfileRadius" "Rib_1")

RibRoundRadius (リブ円形半径)
    入力:
      必須:STR    ヒント: Rib feature name
    出力: REAL, round radius value, or NIL
    例: (SmLispGet "RibRoundRadius" "Rib_1")

SelectEntities (エンティティ選択)
    入力:
      オプション:STR    ヒント: Side of the feature (top or bottom for flanges, lofted bends and ribs, top or thickness or bottom for forms, internal or external for bends and wrong bends, empty for other features)
      必須:STR    ヒント: Feature name
      オプション:INT    ヒント: Maximum number of subentities
    出力: STR, selected faces of feature, or NIL
    例: (SmLispGet "SelectEntities" "Top" "Flange_1" 1) or (SmLispGet "SelectEntities" "Thickness" "Form_1") or (SmLispGet "SelectEntities" "External" "Bend_1") or (SmLispGet "SelectEntities" "Junction_1") or (SmLispGet "SelectEntities" "Junction_2" 2)

SupportsAnalyticalUnfolding (分析展開のサポート)
    入力:
      オプション:STR    ヒント: Lofted bend feature name
    出力: T if feature supports analytical unfold, or NUL
    例: (SmLispGet "SupportsAnalyticalUnfolding" "LoftedBend_1")

Thickness (厚さ)
    入力:
      オプション:STR    ヒント: Wrong flange feature name
    出力: REAL, thickness of sheet metal body, wrong flange, or NIL
    例: (SmLispGet "Thickness") or (SmLispGet "Thickness" "WrongFlange_1")



関連事項