2016-03-31 13 views

答えて

1

EntityModelにそれぞれ添付されたAttributeDictionaryを使用して、カスタム属性を格納できます。

dictname = "TestDictionary" 
key = "arcs" 
value = ["x", "y", "z"] 
model = Sketchup.active_model 
model.set_attribute dictname, key, value 

dict = model.attribute_dictionary dictname 
arcs = dict[key] 

// or 

arcs = model.get_attribute dictname, key