Skip to main content
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!

 

 
It is just a trick, Check the angle of the text in title block

Reply