.NET

Reply
Contributor
jgarciaanton
Posts: 20
Registered: ‎08-23-2006
Message 1 of 2 (115 Views)

Point entity ?

115 Views, 1 Replies
10-11-2006 07:16 AM
Hi,

I need to do something very simple but I am having problems with it.

I need to add a point to the model space, the same way that I can add a circle or another entity. The problem is that if I get a point from the editor I can not add it the normal way, because it doesn´t inherit from the Autodesk.AutoCAD.DatabaseServices.Entity class. I have also tried to use CType with no luck.

There is a class called PointEntity2d but I cannot see a way of creating an object from it and assign it a point2d.

I am using Acad2007 and VS 2005.

If anyone could "point" me in the right direction...

Thanks in advance
j.
Distinguished Contributor
jbooth
Posts: 223
Registered: ‎02-17-2006
Message 2 of 2 (115 Views)

Re: Point entity ?

10-11-2006 07:40 AM in reply to: jgarciaanton
Use the PointEntity2d or PointEntity3d classes, instead of Point2d and Point3d. The latter is not intended to be added to the database by itself - it is used to do other things (ex: specify block insertion points).
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.