cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Can textual elements be found via IsoView API?

ehood
1-Visitor

Can textual elements be found via IsoView API?

I am trying to see if I can determine if a given object has textual content.  The goal is to be able to find objects in a graphic that contain specific textual terms and highlight such objects.

I have the following basic code to walk the CGM object tree:

function walkCgm(cgm, id) {
  if (!id) return;
  var n = cgm.Iso3GetChildCount(id);
  if (n > 0) {
    var child = cgm.Iso3GetFirstChild(id);
    while (child) {
      walkCgm(cgm, child);
      child = cgm.Iso3GetNextSibling(child);
    }
  }
}
walkCgm(cgm, cgm.Iso3GetRootObject());

What I am struggling with is I see no function in the IsoView reference that allows me to determine if I have a text object and then extract the text so I can do processing and comparisons on the text.

In case it matters, I am working with IsoView 7.3.

0 REPLIES 0
Announcements

Top Tags