我的绘图中有一个3点弧。标准中提供的动态属性与矩形相同。有没有办法将3个点定义为能够在之后动态更改它们的属性?
答案 0 :(得分:1)
You can use an AttributeDictionary that are attached to every Entity
and Model
to store custom attributes.
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