<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to get selected DescId and BaseList2D at the same time]]></title><description><![CDATA[<p dir="auto">I found the way to get the selected DescID from the Attributes viewer (DescriptionCustomGui).<br />
However when viewing nested NodeDatas it is not clear to which NodeData the DescID belongs.<br />
For example Instance Object has a "Reference Object". Basically a linkbox. When you open it, you can select attributes in there, however it is then not clear to which NodeData this DescID belongs to: the Referenced Object, or the Instance Object itself.</p>
<pre><code>BaseContainer selection;
RTViewer-&gt;GetDescIDSelection(selection);
if (auto data = selection.GetIndexData(0))
{
    DescID* desc = reinterpret_cast&lt;DescID*&gt;(data-&gt;GetCustomDataTypeI(CUSTOMDATATYPE_DESCID));
    // How to know which NodeData object this belongs to?
}
</code></pre>
]]></description><link>http://developers.maxon.net/forum/topic/16420/how-to-get-selected-descid-and-baselist2d-at-the-same-time</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 01:52:22 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/16420.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Jun 2026 13:56:06 GMT</pubDate><ttl>60</ttl></channel></rss>