Hello,
I want to custom dimensions about text of the coordinate in DWG.
It should be like this:
I select a point then there displays a string of X,Y,Z coordinate of the point.
I select the second point to place a horizontal line(fixed lenth base the string font size) and then the string.
the whole process is like radialDimension,but what I need is to describe the point x,y,z.
and the drawing should consist of start point(actually is the target point too) and end point and the line connects the two points and a horizontal line and a string.
Hopes you can get the right idea of what I want to express.
I think this should be completed using Dimension Class(should be CoordinateDimension based Dimension).
Please help me and give me some codes. Codes is better in C# of VS2010 for autoCAD2010.
Thanks in advance.
Allen
PS:
Actually there is a simple solution for this.
Using c# to draw two lines and a string.
But this is really bad experience when I want to move the string.
Hi,
Not sure from what you describe, but an ordinate dimension looks like you are describing.
Gaston Nunez
Hi,
I want to generate a string contains X-Coordinate,Y-Coordinate and Z-Coordinate.
it appears like a radialdimension.
it can be easily moved to by draging the point1 or point2. when drag point1 the string will moved together.
This is the problem.
Thanks,
Allen
Thanks,Hallex,
Here are more screenshots.
I can move the coordinate text by draging the turning-point and the start point will keep fixed and the line(oblique line) will change its direction automatically. The horizontal line will keep horizontal and moved together with the text.
MOVED TEXT:
You can see what changed.
I think this should be done by an TextDemention(this class name is defined by myself) inherit Demension class.
What should I do?
Any help will be appreciated.
Allen