Hi, i'm starting to develop a .NET plugin, so i'd like to have some advice from you experts
I've just to draw some rectangles on a map (a 2D layer) an then set a label that show me the name and then set other "invisible" properties that describe my area.
I thought to represent this with a region and put a label on it; I'd like that these entities have a kind of relation, like move togheter etc. and finally store into this area some properties, like strings and numbers.
i have to create a custom entity with C++ or there is some other (easier) way to do this?
thanks in advance....
database services contain a GROUP dbobject, which can take the respective label as name and any entities you want associated with it can be appended (and removed), although they remain individually editable.
I don't think you have to use C++, you could use any .NET language.
Visual Basic, C++, C# and there's some others.
But if you are learning why not try Visual basic.
Have fun, the adventure has only begun
>> I don't think you have to use C++, you could use any .NET language.
If the op wants custom objects c++ ARX is the option.
.NET managed does NOT create custom objects.
C++ *is* the only way for custom objects, but there may be some other options that are easier to implement and friendlier to other users: static or dynamic (stretchable) block with attributes, grouped entities, either with XDATA or Extension Dictionaries/XRecords both come to mind.
As I always say, code is the end product, not the start. There needs to be a lot of prior planning, outlines, object model research, etc. prior to writing a single line of code.
true that !
Thanks guys, i think i will wait a white before try to create c++ custom object.
The "Group of Entities" solution seems to be a good choice!
So i will try to put a region and a label with the name in a group, i have just another question:
Where can i put the other properties of my object, i'd like to have a group with its (invisible)
data field like a C# class; I read i can use XData, correct?
There's a tutorial that explain how to use it?
the way to create "custom objects" in .NET is the Overrule API
XData is an easy way to stick some data to entities, but it has limitations (i think there's a maximum size of the XData), it's recomended to use ExtensionDictionary, which is also quite simple
you have to create the ExtensionDicionary with DBObject.CreateExtensionDicionary() and then add some Xrecords in it
>>> the way to create "custom objects" in .NET is the Overrule API
No, words have meanings.
Access a broad range of knowledge to help get the most out of your products and services.
Download & InstallationGetting your Software