Duplicated Object attribute(again).
AnsweredHi.
I posted similar question before, but it's still not solved.
My plug-in pushes meta data objects that have four attributes.
A system show it's information as duplicated.

You can see multiple values for each attributes(height, area).
Do you have any idea about it to fix this problem?
Both the versions of the server and the client are 4.1.0.31401.
-
If you need to get connected to the server, I can provide the server information by email.
0 -
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 -
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.
Comments
3 comments