You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to modify the text of the attribute value. I called the function dwg_ent_attrib_set_text, but the dwg file did not change. Is it because I am using it incorrectly or am I missing some necessary code?
success = dwg_read_file (filename, &dwg);
for (i = 0; i < dwg.num_objects; i++)
{
if (dwg.object[i].fixedtype == DWG_TYPE_ATTRIB)
{
Dwg_Entity_ATTRIB *_obj = dwg.object[i].tio.entity->tio.ATTRIB;
dwg_ent_attrib_set_text(_obj,"hello",0);
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to modify the text of the attribute value. I called the function dwg_ent_attrib_set_text, but the dwg file did not change. Is it because I am using it incorrectly or am I missing some necessary code?
Beta Was this translation helpful? Give feedback.
All reactions