[V8i C++] Finding XAttribute data in a model/file

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?

Thanks,

Bruce

Parents
  • Actually yes but it is an undocumented function. Its prototype is as below:

    Public int   mdlScanCriteria_setXAttributeTest
    (
    ScanCriteriaP                                           scP,
    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 

Reply
  • Actually yes but it is an undocumented function. Its prototype is as below:

    Public int   mdlScanCriteria_setXAttributeTest
    (
    ScanCriteriaP                                           scP,
    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 

Children