.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

custom Dimension of Coordinate string

6 REPLIES 6
Reply
Message 1 of 7
allentable
427 Views, 6 Replies

custom Dimension of Coordinate string

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.

 

 

 

Tags (1)
6 REPLIES 6
Message 2 of 7
hgasty1001
in reply to: allentable

Hi,

 

Not sure from what you describe, but an ordinate dimension looks like you are describing.

 

Gaston Nunez

Message 3 of 7
Hallex
in reply to: allentable

Probably
"%%u" + X.ToString() + ","+ Y.ToString() + ","+ Z.ToString()
does the job?
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 4 of 7
allentable
in reply to: allentable

Hi,

I want to generate a string contains X-Coordinate,Y-Coordinate and Z-Coordinate.

it appears like a radialdimension.

 

FFX.jpgcoor2.jpg

 

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

Message 5 of 7
Hallex
in reply to: allentable

Upload a screenshot to make more sence for me
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 6 of 7
allentable
in reply to: Hallex

Thanks,Hallex,

Here are more screenshots.

cor3.jpg

 

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:

corr3.jpg

 

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

 

 

Message 7 of 7
Hallex
in reply to: allentable

I have no ideas about how to solve this issue, maybe easier to
use leader with embedded block that contains 4 attributes?
_____________________________________
C6309D9E0751D165D0934D0621DFF27919

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost