Is it difficult to create a custom entity type?

Is it difficult to create a custom entity type?

Anonymous
Not applicable
404 Views
6 Replies
Message 1 of 7

Is it difficult to create a custom entity type?

Anonymous
Not applicable
Hi,

I want to create my custom entity type. This would look like two standard AutoCAD entity a Point and a Text together. I want the text to show always the Point entity's Z coordinates.

I can make a program in Visual Basic to solve this but this program can't be dynamic. If i change the point position i have to run the program to delete the Text entity and create a new Text next to the point, showing the new and correct value.

Is it possible to make an arx program that represents this custom entity where the Text part of the custom entity dynamically follow the change of the Point part of the custom entity?

And if it is possible than where can I find samples on the WEB, showing how to create custom entity ?

Paul
0 Likes
405 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
That sounds like a pretty simple application to make, but you would need to use native C++ ObjectARX to make your custom entity. If you are proficient in programming (even only VBA) and were willing to learn a little C++ and acquire VS 2002.NET, you could probably patch together sample code and such to get you what you need. Keep in mind native C++ ObjectARX is not easy to learn, but your problem sounds like a very, very simple application. I'm sure someone (Dan?) will chime in and tell you to use VB.NET and maybe wait for the .NET wrappers to support custom entities, so I will save them their breath... ObjectARX.NET can't do this yet but my understanding is they will support that functionality at some unspecified future date. HTH :-) Andrew
0 Likes
Message 3 of 7

Anonymous
Not applicable
Hi, Andrew

Thanks for your reply! I couldn't choose ObjectARX.NET even if I wanted, because I simply do not have Visual Studio.NET. So I have to learn native C++ ObjectARX. Of course I hope I will be able to put together more serious programs, but first I would like start the simplest one, that is why I describe this "Point with Text" program.

So you say I should try to put this program together from the samples that I downloaded with the ObjectARX SDK from the AutoCAD homepage?

Can you suggest me some other places on the WEB for sample codes which specialized for custom entities?

Paul
0 Likes
Message 4 of 7

Anonymous
Not applicable
If you dont have Visual Studio .Net 2002 or at least Visual C++ 7.0 (not 7.1) you can't do anything with ObjectARX for Autocad 2004 and 2005 (for Autocad 2000 & 2002 you need Visoal Studio 6.0 or VC++ 6.0). They are required. And it is a simple app you need. And there are not to much samles outside this forum on the web. But if you have stuck on somthing feel free to ask. There are a lot of people that can help you here. Regards Rex "tothpal" schrieb im Newsbeitrag news:19854907.1099384639554.JavaMail.jive@jiveforum1.autodesk.com... > Hi, Andrew > > Thanks for your reply! I couldn't choose ObjectARX.NET even if I wanted, because I simply do not have Visual Studio.NET. So I have to learn native C++ ObjectARX. Of course I hope I will be able to put together more serious programs, but first I would like start the simplest one, that is why I describe this "Point with Text" program. > > So you say I should try to put this program together from the samples that I downloaded with the ObjectARX SDK from the AutoCAD homepage? > > Can you suggest me some other places on the WEB for sample codes which specialized for custom entities? > > Paul
0 Likes
Message 5 of 7

Anonymous
Not applicable
For .net development you could try the free ide 'sharpdevelop' http://www.icsharpcode.net/OpenSource/SD/Default.aspx "tothpal" wrote in message news:19854907.1099384639554.JavaMail.jive@jiveforum1.autodesk.com... > Hi, Andrew > > Thanks for your reply! I couldn't choose ObjectARX.NET even if I wanted, because I simply do not have Visual Studio.NET. So I have to learn native C++ ObjectARX. Of course I hope I will be able to put together more serious programs, but first I would like start the simplest one, that is why I describe this "Point with Text" program. > > So you say I should try to put this program together from the samples that I downloaded with the ObjectARX SDK from the AutoCAD homepage? > > Can you suggest me some other places on the WEB for sample codes which specialized for custom entities? > > Paul
0 Likes
Message 6 of 7

Anonymous
Not applicable
Attempting to learn a new (and complicated) language owing to a lack of a compiler seems to be getting the cart before the horse. You're going to need some kind of compiler, even with ObjectARX. I believe Microsoft is (was?) giving away the command-line version of C# - the same compiler used in Visual Studio .NET w/o the IDE. I don't recall if they did that for VB.NET as well (perhaps not, as there isn't as much motivation to drive adoption - VB programmers are already "locked in" to Microsoft). Also, as part of Visual Studio 2005 there are new "Express" offerings. Look up all the details at http://msdn.microsoft.com Dan "tothpal" wrote in message news:19854907.1099384639554.JavaMail.jive@jiveforum1.autodesk.com... > Hi, Andrew > > Thanks for your reply! I couldn't choose ObjectARX.NET even if I wanted, > because I simply do not have Visual Studio.NET. So I have to learn native > C++ ObjectARX. Of course I hope I will be able to put together more > serious programs, but first I would like start the simplest one, that is > why I describe this "Point with Text" program. > > So you say I should try to put this program together from the samples that > I downloaded with the ObjectARX SDK from the AutoCAD homepage? > > Can you suggest me some other places on the WEB for sample codes which > specialized for custom entities? > > Paul
0 Likes
Message 7 of 7

Anonymous
Not applicable
check out ebay, there are great buys on visual studio
0 Likes