Object Classes in VB.NET

Object Classes in VB.NET

Sgear
Advocate Advocate
569 Views
1 Reply
Message 1 of 2

Object Classes in VB.NET

Sgear
Advocate
Advocate

 

Hi

When I read Object Classes in VB.NET I don't get same order and Autocad show the Object Class in Map Explorer
In VB.NET I get order from the XML file so when I add new Object Class somewhere between it go in the end in the XML file
And in VB.NET it is the last record How can I read Object Class in VB.NET and use same order and Autocad show it in Map Explorer

 

I was using the sample from Map ObjectARX / ClassificationVB

 

Sgear

0 Likes
570 Views
1 Reply
Reply (1)
Message 2 of 2

norman.yuan
Mentor
Mentor

Firstly, because your question is on AutoCAD MAP-only feature/topic, you might as well consider post it on forum "AutoCAD Map 3D Developer".

 

Regarding to your question, why does the order of Object Classes (or the order of the classes' name is listed) matter, if it is different from the class' names being displayed in Map Explorer? An object class is identified by its name, not by its place in a list (of the names). If necessary, you can sort its name in whatever order you want; but if you want to use particular object class, you need to identify the class by its name. You may want to give more details as why the order of showing Object Class (on somewhere by its name, obviously) is important.

 

By the way, when you say you "add new Object Class", do you mean adding a new Object Class definition, or classify and AutoCAD entity as a given class?

Norman Yuan

Drive CAD With Code

EESignature

0 Likes