Get Drawing Dimension Edges and Faces

Get Drawing Dimension Edges and Faces

nishantkumat5921
Enthusiast Enthusiast
96 Views
0 Replies
Message 1 of 1

Get Drawing Dimension Edges and Faces

nishantkumat5921
Enthusiast
Enthusiast

Hello Team,

 

Good Morning!

 

My requirement:

I am trying to fetch all the edges and faces  connected to dimension from a drawing template and to use the same edges and faces to create dimensions in other templates. Reason for me to do this and not just changing the reference document and move on is as the size of objects change the section views sketch remains same so i want them to be created at runtime, but creating dimensions at runtime will be more time taking as more number of components are involved.

 

Approach I have tried:

But the intent is and getting below item.IntentOne' threw an exception of type 'System.Runtime.InteropServices.COMException'.

 

I have tried to change the view styles and try but unable to retrieve the intent.

I have not implemented edge naming or face naming in the assembly so cannot take that path.

 

Please let me know your thoughts

 

foreach (Sheet sheet in drawingDoc.Sheets)
{
    foreach (LinearGeneralDimension item in sheet.DrawingDimensions.GeneralDimensions)
    {
  var testIntentOne= item.IntentOne;
var testIntentTwo= item.IntentTwo;
}
}

 

 

0 Likes
97 Views
0 Replies
Replies (0)