Search found 4 matches
- 18 Apr 2021, 09:19
- Forum: CAD .NET
- Topic: How to get the angle of a M-Text Entity
- Replies: 3
- Views: 9239
Re: How to get the angle of a M-Text Entity
Hi Mikhail, I tried by myself and worked out with CADMText.Point1 and CADMText.Extrusion. double radian = Math.Atan((mText.Point1.Y - mText.Extrusion.Y) / (mText.Point1.X - mText.Extrusion.X)); double angle = radian / (Math.PI / 180); it retrieves the real angle of an M-Text whether the CADMText.Ang...
- 18 Apr 2021, 06:33
- Forum: CAD .NET
- Topic: How to get the angle of a M-Text Entity
- Replies: 3
- Views: 9239
Re: How to get the angle of a M-Text Entity
Hello, Thanks for your reply. But I didn't understand what did you mean. Can you explain some detail by example? Here is an example: There is a M-Text in dimension that I can tell is absolutely 90° rotated. But when I tried to get its Angle preperty, I got 0. Its Point1 and Extrusion Property are li...
- 13 Apr 2021, 14:24
- Forum: CAD .NET
- Topic: Relative coordinates conversion
- Replies: 4
- Views: 5685
Re: Relative coordinates conversion
It has passed so long since last reply that I don't know if my reply is necessary but... I'm using belowing to get an entity's parent(dimension or insert or something else which has a Block.Entities Property): CADDimension parentDimension = dimensions.Find(d => d.Block.Entities.FindAll(e => e.EntTyp...
- 13 Apr 2021, 13:21
- Forum: CAD .NET
- Topic: How to get the angle of a M-Text Entity
- Replies: 3
- Views: 9239
How to get the angle of a M-Text Entity
There are some Rotated M-Texts and normal M-Texts in CADDimensions. I tried to use ((CADMText)entity).Angle. The results are correct most of the time, but sometimes the result came back is 0 even if the M-Text looks rotated why? I just wanted to get the angle between the M-Text and the horizontal li...