Since XAttribute data is stored ON an element , not IN an element, is it possible to somehow iterate through all the instances of data related to a specific schema without scanning through the graphic elements? If so, how would one approach the problem?
Actually yes but it is an undocumented function. Its prototype is as below:
Public int mdlScanCriteria_setXAttributeTest
struct Bentley::Ustn::Element::XAttributeHandlerId* handlerId, // Pass NULL to clear
UInt32 attrId, // Pass XAttributeHandle::MATCH_ANY_ID for any.
ExtendedAttrBuf* xattrBuf // Can be NULL
Answer Verified By: Bruce Reeves SRNS
I like to try mdlScanCriteria_setXAttributeTest(), but I did not get it linked. Which library do I have to use? I tried to describe the problem with detail information here: [Connect | V8] [C# | C++ SDK] Finding Xattributes quickly and selectively, without the detour via "search element"?
Mit freundlichen Grüßen / Best regards Volker Hüfner
| AB_DATE Engineering Software | ab-date.de |
I read your linked post and think you have resolved the issue. Am I right ?
Yes you are. Sometimes the smallest things have the greatest impact. a missing extern "C" was all. Thanks a lot!