Skip to main content
Solved

How to determine if a drawing is rotated in cad model space?

  • June 5, 2015
  • 1 reply
  • 60 views

Hello Everyone:

 

I have created a workspace that takes a cad (.dwg) file and after translation produces an xml file. As part of the input cad file validation I am doing cad file structure check, which involves checking if the input file could be read then I check for if the cad file is in model space and then as a final check I check to determine if the drawing in cad model space is in 2D plane or if it is rotated (randomly) in the model space. (Please note, I want to check if the drawing itself is rotated in cad model space and NOT if individual features or individual layers are rotated or not in one plane). I have checks for input file readability and model space working. But I have not been able to get the check for drawing rotation (or orientation) in model space to work. I have tried using several transformers (e.g. affiner, 3DAffiner, 3dBoundingBoxReplacer, CentrePointReplacer, PlanarityFilter, etc.) to check for the drawing rotation property, but so far no luck in getting the results.

 

Any help/suggestion is greatly appreciated. 

 

Thank you!

 

 

Best answer by pratap

It is just a trick, Check the angle of the text in title block
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

pratap
Contributor
Forum|alt.badge.img+12
  • Contributor
  • Best Answer
  • June 10, 2015
It is just a trick, Check the angle of the text in title block