(1) Do you have the latest Dynamic Components extension installed for your version of SketchUp ?
(2)ALL the default dynamic attributes are attached to the component definitionâs "dynamic_attributes" dictionary.
When a DC component instance gets created, only a few normal âhousekeepingâ dynamic attributes are attached to the instance and then as the user makes changes, if the attribute values differ from the defaults stored in the component definitionâs "dynamic_attributes" dictionary, then the instance will get these âoverrideâ attributes created in itâs own"dynamic_attributes" dictionary.
But ⌠nested DC groups always have ALL their dynamic attributes attached in the group instanceâs "dynamic_attributes" dictionary.
s.set_attribute âdynamic_attributesâ,â_c2_material_door_use_idbanding_formulaunitsâ, âNOT REQUIREDâ
is in error, and is really not required
You should consider making a few functions and constants as Dan showed you previously. Saves a lot of work
@DanRathbun.,
Continuing on this thread, the dynamic custom attributes are unusable for editing even though in the component definition.
Attached herewith the file and image for the reference.
where the attributes are displaying full name, while linking or referenced in other attribute.
Also shows as undefined.
is this the nature of the DC, when the attributes are imported through the ruby code.?
I donât know. Perhaps it is a bug in the latest version ?
You could try rolling back to an earlier DC version.
As said many times elsewhere, Dynamic Components is a proprietary, closed-source native extension for SketchUp (whose intellectual property belongs to Trimble, Inc.)
Using Ruby code to create DC components is basically âhackingâ. It requires guru level knowledge and ability in Ruby, SketchUp and Dynamic Components. There is no handbook or programmerâs reference to âhackingâ DC components. (Sorry.)
That said, I do not know what you are doing that is giving you issues. I do not have the time to figure it out.
You are on your own. All I can suggest is that you do something manually using the native DC interface dialogs, and then examine the âdynamic_attributesâ dictionaries using Aeriliusâ Attribute Inspector to see the results that are normal hidden from users. After changes, always examine both the definition and instance.