Changing Element Attribute Values
I spent far to long trying to figure out how to change an element attribute value without the FDK's SetAttributes function, so I thought I'd spare someone else the time.
Basically, you still get the attributes using the GetAttributes() function, but now you just set the beg.child.Attributes property to the updated attribute value.
//starting with a selected element
elemSelect=app.ActiveDoc.ElementSelection
//get the current attributes
var childattributes =elemSelect.beg.child.GetAttributes()
//find the attribute and value you want to change, and change it to a new value.
childattributes[0].values[0] = "New_Value"
//now assign the edited attributes to the selected element.
elemSelect.beg.child.Attributes=childattributes
Depending on how you selected the element, I assume you could do the above with beg.parent as well, but it wasn't something I needed to consider.
~Christen
