「Bmlispget」の版間の差分
| 編集の要約なし | 編集の要約なし | ||
| 1行目: | 1行目: | ||
| {{ | {{BCAD_LISP_MECH}} | ||
| ; 構文 | ; 構文 | ||
| : (bmlispget ''feature''  ''...'' ) | : (bmlispget ''feature''  ''...'' ) | ||
2023年5月16日 (火) 08:24時点における版
BricsCAD Mechanical関数 Home - BricsCADのLISP - AutoLISP Home - CAD&CGブログ - オンラインショップ- GizmoTools ヘルプセンター
- 構文
- (bmlispget feature ... )
- 機能
- (bmlispget ...) 関数は可変の引数を使用する。
- - すべての引数の組み合わせに関する一般的な要約は、 (bmlispget "?") または (bmlispget "help") で確認できる。
- 以下は、アルファベット順の全機能オプションのリスト。
- 引数
- 
- feature : フィーチャー
- ... : 追加する値。
 
- 戻り値
- フィーチャーにより色々。
- サンプル
BlockReference
 引数 :
   STR    アセンブリ名
   STR    インスタンス名
 返り値:
   ENAME, インスタンスのブロック名、または NIL
 例:
   (BmLispGet "BlockReference" "Assembly_1" "Instance_1")
 
ComponentQuantity
 引数 :
   STR    Component name
 返り値:
   number of occurrences of  component in root assembly, or NIL
 例:
   (BmLispGet "ComponentQuantity" "Assembly_1")
 
Components
 引数 :
   なし
 返り値:
   LIST of STR, names of the  components stored in the  document, or NIL
 例:
   (BmLispGet "Components")
 
Description
 引数 :
   STR    Component name
 返り値:
   STR, description of the component, or NIL
 例:
   (BmLispGet "Description" "Component_1")
 
FilePath
 引数 :
   STR    Component name
 返り値:
   STR, file path for external component, or NIL
 例:
   (BmLispGet "FilePath" "Component_1")
 
HasAssemblyContext
 引数 :
   なし
 返り値:
   T, if the document contains root component, or NIL
 例:
   (BmLispGet "HasAssemblyContext")
 
HasMaterial
 引数 :
   STR    Component name
 返り値:
   T, if the component has a material, or NIL
 
   (BmLispGet "HasMaterial" "Component_1")
 
Help or ?
 引数 :
   STR    feature name
 返り値:
   feature's help
 例:
   (BmLispGet "Help")
   (BmLispGet "Help" "Material")
   (BmLispGet "?")
   (BmLispGet "?" "Material")
 
Instances
 引数 :
   STR    Component name
 返り値:
   LIST of STR, names of the instances which belong to given assembly, or NIL
 例:
   (BmLispGet "Instances" "Component_1")
 
IsAssembly
 引数 :
   STR    Component name
 返り値:
   T, if given component is assembly, or NIL
 例:
   (BmLispGet "IsAssembly" "Component_1")
 
IsLocal
 引数 :
   STR    Component name
 返り値:
   T, if given component is local, or NIL
 例:
   (BmLispGet "IsLocal" "Component_1")
 
IsRoot
 引数 :
   STR    Component name
 返り値:
   T, if given component is root, or NIL
 例:
   (BmLispGet "IsRoot" "Component_1")
 
Material
 引数 :
   STR    Component name
 返り値:
   STR, name of the material assigned to the component, or NIL
 例:
   (BmLispGet "Material" "Component_1")
 
MaterialDensity
 引数 :
   STR    Material name
 返り値:
   REAL, density of the material in kg/m^3, or NIL
 例:
   (BmLispGet "MaterialDensity" "Steel")
 
Materials
 引数 :
   なし
 返り値:
   LIST of STR, names of the materials stored in the document, or NIL
 例: 
   (BmLispGet "Materials")
 
MaterialSpecificHeat
 引数 :
   STR    Material name
 返り値:
   REAL, specific heat of the material in J/(kg*K), or NIL
 例:
   (BmLispGet "MaterialSpecificHeat" "Steel")
 
MaterialThermalConductivity
  引数 :
    STR    Material name
  返り値: 
    REAL, thermal conductivity of the material in W/(m*K) , or NIL
  例: 
    (BmLispGet "MaterialThermalConductivity" "Steel")
関連事項
