Class: Sketchup::ComponentInstance
Overview
Instance Method Summary # collapse
-
#dfc_get_common_attribute ⇒ Hash
取得公共属性.
-
#dfc_get_material_attribute ⇒ Array<Hash>
取得材料属性.
-
#dfc_get_product_attribute ⇒ Array<Hash>
取得产品属性.
-
#dfc_set_common_attribute(attr_hash) ⇒ Nil
设置公共属性.
-
#dfc_set_material_attribute(attrs) ⇒ Nil
设置材料属性 attrs = [ { ‘CP_ID’ => ‘xxxxxxx’, ‘CP_XH’ => ‘xxxxxxx’, ‘WL_LX’ => ‘产品’, ‘WL_JG’ => false, # 物料是否甲供 默认false ‘WL_ZC’ => false, # 物料是否甲供 默认false }, { ‘CL_ID’ => ‘xxxxxxx’, ‘CL_XH’ => ‘xxxxxxx’, ‘CZ_SY’ => 0, ‘CL_LX’ => ‘主材’, # 有了 WL_ZC 这个属性将废弃 ‘WL_LX’ => ‘材料’, ‘WL_JG’ => false, # 物料是否甲供 默认false ‘WL_ZC’ => false, # 物料是否甲供 默认false } ] group.dfc_set_material_attribute(attrs).
-
#dfc_set_product_attribute(attrs) ⇒ Nil
设置产品属性.
Instance Method Details
↑ #dfc_get_common_attribute ⇒ Hash
取得公共属性
↑ #dfc_get_material_attribute ⇒ Array<Hash>
取得材料属性
↑ #dfc_get_product_attribute ⇒ Array<Hash>
取得产品属性
↑ #dfc_set_common_attribute(attr_hash) ⇒ Nil
设置公共属性
↑ #dfc_set_material_attribute(attrs) ⇒ Nil
设置材料属性
attrs = [
{
'CP_ID' => 'xxxxxxx',
'CP_XH' => 'xxxxxxx',
'WL_LX' => '产品',
'WL_JG' => false, # 物料是否甲供 默认false
'WL_ZC' => false, # 物料是否甲供 默认false
},
{
'CL_ID' => 'xxxxxxx',
'CL_XH' => 'xxxxxxx',
'CZ_SY' => 0,
'CL_LX' => '主材', # 有了 WL_ZC 这个属性将废弃
'WL_LX' => '材料',
'WL_JG' => false, # 物料是否甲供 默认false
'WL_ZC' => false, # 物料是否甲供 默认false
}
]
group.dfc_set_material_attribute(attrs)
↑ #dfc_set_product_attribute(attrs) ⇒ Nil
设置产品属性