<?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: Changing the Field of Property Array. in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/changing-the-field-of-property-array/m-p/2172931#M75647</link>
    <description>Your mistake is using double[] to represent 3D coordinates. &lt;BR /&gt;
&lt;BR /&gt;
That's a very bad design. Arrays are generic which makes it difficult to treat those used to represent 3d coordinates in a special way as you are trying to do.&lt;BR /&gt;
&lt;BR /&gt;
Instead of using arrays, use Point3d, and provide a TypeConverter for it.&lt;BR /&gt;
&lt;BR /&gt;
See this file for examples:&lt;BR /&gt;
&lt;BR /&gt;
  http://www.caddzone.com/ComponentModel.cs&lt;BR /&gt;
&lt;BR /&gt;
Add the file to a C# project, NETLOAD it, and run the sample command. You will see a property grid that shows 2D and 3D coordinates and vectors the way you want. &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;VIGNESHS&gt; wrote in message news:5840303@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
I have a c++ wrapper which contains an array^ property. When i access it via PropertyGrid, it is displaying something like below.&lt;BR /&gt;
&lt;BR /&gt;
DValue Double[] Array&lt;BR /&gt;
[0] 22&lt;BR /&gt;
[1] 33&lt;BR /&gt;
[2] 44&lt;BR /&gt;
&lt;BR /&gt;
But, i want the appearance to be like this.&lt;BR /&gt;
&lt;BR /&gt;
DValue 22,33,44&lt;BR /&gt;
A 22&lt;BR /&gt;
B 33&lt;BR /&gt;
C 44&lt;BR /&gt;
&lt;BR /&gt;
I can achieve the Starting part (i.e.)&lt;BR /&gt;
&lt;BR /&gt;
DValue 22,33,44&lt;BR /&gt;
&lt;BR /&gt;
with the help of TypeConverter in c#. &lt;BR /&gt;
&lt;BR /&gt;
But i cannot be able to change the remaining part as above.&lt;BR /&gt;
&lt;BR /&gt;
Could anyone kindly solve my problem?&lt;BR /&gt;
&lt;BR /&gt;
Thank you in Advance.&lt;BR /&gt;
&lt;BR /&gt;
Regards, &lt;BR /&gt;
Vignesh. S&lt;/VIGNESHS&gt;</description>
    <pubDate>Wed, 06 Feb 2008 19:17:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-02-06T19:17:46Z</dc:date>
    <item>
      <title>Changing the Field of Property Array.</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-field-of-property-array/m-p/2172930#M75646</link>
      <description>Hi,&lt;BR /&gt;
I have a c++ wrapper which contains an array^ property. When i access it via PropertyGrid, it is displaying something like below.&lt;BR /&gt;
&lt;BR /&gt;
DValue Double[] Array&lt;BR /&gt;
[0] 22&lt;BR /&gt;
[1] 33&lt;BR /&gt;
[2] 44&lt;BR /&gt;
&lt;BR /&gt;
But, i want the appearance to be like this.&lt;BR /&gt;
&lt;BR /&gt;
DValue 22,33,44&lt;BR /&gt;
A 22&lt;BR /&gt;
B 33&lt;BR /&gt;
C 44&lt;BR /&gt;
&lt;BR /&gt;
I can achieve the Starting part (i.e.)&lt;BR /&gt;
&lt;BR /&gt;
DValue 22,33,44&lt;BR /&gt;
&lt;BR /&gt;
with the help of TypeConverter in c#. &lt;BR /&gt;
&lt;BR /&gt;
But i cannot be able to change the remaining part as above.&lt;BR /&gt;
&lt;BR /&gt;
Could anyone kindly solve my problem?&lt;BR /&gt;
&lt;BR /&gt;
Thank you in Advance.&lt;BR /&gt;
&lt;BR /&gt;
Regards, &lt;BR /&gt;
Vignesh. S</description>
      <pubDate>Wed, 06 Feb 2008 11:44:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-field-of-property-array/m-p/2172930#M75646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-06T11:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the Field of Property Array.</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-field-of-property-array/m-p/2172931#M75647</link>
      <description>Your mistake is using double[] to represent 3D coordinates. &lt;BR /&gt;
&lt;BR /&gt;
That's a very bad design. Arrays are generic which makes it difficult to treat those used to represent 3d coordinates in a special way as you are trying to do.&lt;BR /&gt;
&lt;BR /&gt;
Instead of using arrays, use Point3d, and provide a TypeConverter for it.&lt;BR /&gt;
&lt;BR /&gt;
See this file for examples:&lt;BR /&gt;
&lt;BR /&gt;
  http://www.caddzone.com/ComponentModel.cs&lt;BR /&gt;
&lt;BR /&gt;
Add the file to a C# project, NETLOAD it, and run the sample command. You will see a property grid that shows 2D and 3D coordinates and vectors the way you want. &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;VIGNESHS&gt; wrote in message news:5840303@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
I have a c++ wrapper which contains an array^ property. When i access it via PropertyGrid, it is displaying something like below.&lt;BR /&gt;
&lt;BR /&gt;
DValue Double[] Array&lt;BR /&gt;
[0] 22&lt;BR /&gt;
[1] 33&lt;BR /&gt;
[2] 44&lt;BR /&gt;
&lt;BR /&gt;
But, i want the appearance to be like this.&lt;BR /&gt;
&lt;BR /&gt;
DValue 22,33,44&lt;BR /&gt;
A 22&lt;BR /&gt;
B 33&lt;BR /&gt;
C 44&lt;BR /&gt;
&lt;BR /&gt;
I can achieve the Starting part (i.e.)&lt;BR /&gt;
&lt;BR /&gt;
DValue 22,33,44&lt;BR /&gt;
&lt;BR /&gt;
with the help of TypeConverter in c#. &lt;BR /&gt;
&lt;BR /&gt;
But i cannot be able to change the remaining part as above.&lt;BR /&gt;
&lt;BR /&gt;
Could anyone kindly solve my problem?&lt;BR /&gt;
&lt;BR /&gt;
Thank you in Advance.&lt;BR /&gt;
&lt;BR /&gt;
Regards, &lt;BR /&gt;
Vignesh. S&lt;/VIGNESHS&gt;</description>
      <pubDate>Wed, 06 Feb 2008 19:17:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-field-of-property-array/m-p/2172931#M75647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-06T19:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the Field of Property Array.</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-field-of-property-array/m-p/2172932#M75648</link>
      <description>It is not 3d Coordinates. They are Length values for Different Lines.</description>
      <pubDate>Thu, 07 Feb 2008 03:29:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-field-of-property-array/m-p/2172932#M75648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-07T03:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the Field of Property Array.</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-field-of-property-array/m-p/2172933#M75649</link>
      <description>Hi Tony,&lt;BR /&gt;
                 I actually put A, B, C for not confusing anyone by the X, Y, Z coordinates. But i didnt know that it will misguide you.&lt;BR /&gt;
&lt;BR /&gt;
                 Anyhow, I found the Solution for my problem.&lt;BR /&gt;
&lt;BR /&gt;
                 It is just by overriding the PropertyDescriptor's DisplayName Property.&lt;BR /&gt;
&lt;BR /&gt;
                  Thank you for your Reply.</description>
      <pubDate>Thu, 07 Feb 2008 10:30:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-field-of-property-array/m-p/2172933#M75649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-07T10:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the Field of Property Array.</title>
      <link>https://forums.autodesk.com/t5/net-forum/changing-the-field-of-property-array/m-p/2172934#M75650</link>
      <description>Regardless of what the values represent, the methods shown&lt;BR /&gt;
in the example still apply to what you need to do. You can&lt;BR /&gt;
implement a TypeConverter and apply it to properties of an&lt;BR /&gt;
object that returns a double[] to present it the same way the&lt;BR /&gt;
sample code presents 3D points.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;VIGNESHS&gt; wrote in message news:5841288@discussion.autodesk.com...&lt;BR /&gt;
It is not 3d Coordinates. They are Length values for Different Lines.&lt;/VIGNESHS&gt;</description>
      <pubDate>Thu, 07 Feb 2008 21:22:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/changing-the-field-of-property-array/m-p/2172934#M75650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-07T21:22:00Z</dc:date>
    </item>
  </channel>
</rss>

