Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

Duplicated Object attribute(again).

Answered

Comments

3 comments

  • Jason Shim

    If you need to get connected to the server, I can provide the server information by email.

    0
  • Andrey Terentyev
    • Network Optix team

    Hi Jason,

    Here is what I did.

    • I took the 4.1.0.31401 build.
    • I took the metavms-metadata_sdk-4.1.0.31466-universal

    The stub_analytics_plugin has the multivalue "Distance" parameter  for the "Car"-type object. (search for "Distance" in vehicls.cpp)

    • I added a code to generate another parameter with a random value. Here is the code.
    void Vehicle::updateRandomAttribute()
    {
    for (const auto& attribute: m_attributes)
    {
    if (attribute->name() == std::string("Random"))
    {
    attribute->setValue(std::to_string(randomFloat(0.005F, 0.03F))+" sqft");
    break;
    }

    }
    }

    void Vehicle::update()
    {
    m_position += m_trajectory * m_speed;
    updateDistanceAttributeIfItExists();
    updateRandomAttribute();
    }

    Here is the result. Multiple values are grouped.

    > My plug-in pushes meta data objects that have four attributes.

    What are they? I see two: height, area.

    Try to rebuild your plugin with the latest Metadata SDK.
    Try to embed your code generating the "height, area" attributes just next to the "Distance" parameter updating in the stub_analytics_plugin and see what's the difference. Build the plugin and see how it works.

    If it does not help, let me know. We'll switch to a ticket. I'll need your code.

    0
  • Norman
    • Network Optix team

    Hi Jason Shim,

    We have not heard back from you in a while, so we are going to assume your question has been answered and set this topic to 'Answered'.

    0

Please sign in to leave a comment.