<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I read Custom Properties/Attributes from an anonymous object? in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932766#M5243</link>
    <description>&lt;P&gt;Ok. I am getting a hang of it now. Basically we are accessing from a set of pre-defined objects and modifying the custom properties to dynamically change it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt;&amp;nbsp; am I on the right track?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, how do I access the text value of the property?&lt;/P&gt;&lt;PRE&gt;if (wcscmp(blkProp.propertyName().kACharPtr(), L"Visibility1") == 0)
{
	AfxMessageBox(_T("Visibility1 Found"));&lt;BR /&gt;        &lt;BR /&gt;        &lt;STRONG&gt;// How to display the value as text?&lt;/STRONG&gt;
	&lt;FONT size="4"&gt;&lt;STRONG&gt;AfxMessageBox( blkProp.value() );&lt;/STRONG&gt;&lt;/FONT&gt;
	blkProp.setValue(_T("B1"));
}&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Jul 2019 13:45:36 GMT</pubDate>
    <dc:creator>jlobo2</dc:creator>
    <dc:date>2019-07-26T13:45:36Z</dc:date>
    <item>
      <title>How do I read Custom Properties/Attributes from an anonymous object?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8931535#M5237</link>
      <description>&lt;P&gt;How do I read Custom Properties/Attributes from an anonymous object?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can read the attributes of the object, but not sure how to read the below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/661208i540E6D6EF8903F58/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="CustomProperites.jpg" title="CustomProperites.jpg" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 21:58:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8931535#M5237</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-25T21:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read Custom Properties/Attributes from an anonymous object?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932200#M5238</link>
      <description>&lt;P&gt;C# or C++? If C# - you (as usually)&amp;nbsp; created topic in wrong forum. Right forum is: &lt;A href="https://forums.autodesk.com/t5/net/bd-p/152" target="_blank"&gt;https://forums.autodesk.com/t5/net/bd-p/152&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also no difference between getting custom properties from anonymous and named block references.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 08:29:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932200#M5238</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-26T08:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read Custom Properties/Attributes from an anonymous object?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932532#M5239</link>
      <description>&lt;P&gt;Yes&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt;&amp;nbsp;, I did post it on the .NET forum as well.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/how-do-i-read-custom-properties-attributes-from-an-anonymous/td-p/8931534" target="_blank"&gt;https://forums.autodesk.com/t5/net/how-do-i-read-custom-properties-attributes-from-an-anonymous/td-p/8931534&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My bad, I thought this forum was for C++.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to access the custom properties for the block references or anonymous blocks in C++ though?&lt;/P&gt;&lt;P&gt;Thank You for your help once again.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 12:01:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932532#M5239</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-26T12:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read Custom Properties/Attributes from an anonymous object?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932551#M5240</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1626012"&gt;@jlobo2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How to access the custom properties for the block references or anonymous blocks in C++ though?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/autocad/2012/08/how-to-access-and-modify-a-dynamicblockreference-property-in-arx-and-net.html" target="_blank"&gt;https://adndevblog.typepad.com/autocad/2012/08/how-to-access-and-modify-a-dynamicblockreference-property-in-arx-and-net.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 12:08:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932551#M5240</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-26T12:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read Custom Properties/Attributes from an anonymous object?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932693#M5241</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt;&amp;nbsp;, How do I set the property value for the block?&lt;/P&gt;&lt;P&gt;I am using the following code, but it does not update the value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if (wcscmp(blkProp.propertyName().kACharPtr(), L"Visibility1") == 0)
{
	AfxMessageBox(_T("Visibility1 Found"));
	&lt;STRONG&gt;&lt;FONT size="4"&gt;blkProp.setValue(_T("TEST"));&lt;/FONT&gt;&lt;/STRONG&gt;
}&lt;/PRE&gt;&lt;P&gt;Also, how do I access or print this following value in TCHAR?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//Get allowed values for property
AcDbEvalVariantArray evalAry;
if ((err = blkProp.getAllowedValues(evalAry)) == Acad::eOk)
{&lt;BR /&gt;	if (evalAry.length() &amp;gt;= 1)
	{
		&lt;STRONG&gt;AcDbEvalVariant eval = evalAry[1];&lt;BR /&gt;&lt;/STRONG&gt;               &lt;STRONG&gt; // How do I access this value as a TCHAR or string &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;                // to print in the command line?&lt;/STRONG&gt;&lt;BR /&gt;					
		if (!blkProp.readOnly())
		{
			if ((err = blkProp.setValue(eval)) != Acad::eOk)
			{
				acutPrintf(L"\nError setting property value...");
			}
		}
	}
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 13:17:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932693#M5241</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-26T13:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read Custom Properties/Attributes from an anonymous object?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932707#M5242</link>
      <description>&lt;P&gt;Not&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;AcDbEvalVariant eval = evalAry[1];&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;but&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;AcDbEvalVariant eval = evalAry[0];&lt;/STRONG&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 13:20:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932707#M5242</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-26T13:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read Custom Properties/Attributes from an anonymous object?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932766#M5243</link>
      <description>&lt;P&gt;Ok. I am getting a hang of it now. Basically we are accessing from a set of pre-defined objects and modifying the custom properties to dynamically change it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt;&amp;nbsp; am I on the right track?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, how do I access the text value of the property?&lt;/P&gt;&lt;PRE&gt;if (wcscmp(blkProp.propertyName().kACharPtr(), L"Visibility1") == 0)
{
	AfxMessageBox(_T("Visibility1 Found"));&lt;BR /&gt;        &lt;BR /&gt;        &lt;STRONG&gt;// How to display the value as text?&lt;/STRONG&gt;
	&lt;FONT size="4"&gt;&lt;STRONG&gt;AfxMessageBox( blkProp.value() );&lt;/STRONG&gt;&lt;/FONT&gt;
	blkProp.setValue(_T("B1"));
}&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 13:45:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932766#M5243</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-26T13:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read Custom Properties/Attributes from an anonymous object?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932920#M5244</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt;&amp;nbsp; Nevermind - I got it working through the code in C#.NET&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot once again for your help. I really appreciate it.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 14:53:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8932920#M5244</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-26T14:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read Custom Properties/Attributes from an anonymous object?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8933046#M5245</link>
      <description>&lt;P&gt;As far as AcDbEvalVariant is derived from struct resbuf, you can use function dxfToStr&amp;nbsp; or printResbufChain (which defined in ObjectARX SDK samples\database\ARXDBG\AcadUtils\ArxDbgRbList.cpp) to convert AcDbEvalVariant to CString&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:57:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-i-read-custom-properties-attributes-from-an-anonymous/m-p/8933046#M5245</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-26T15:57:23Z</dc:date>
    </item>
  </channel>
</rss>

