Adding Dimensions to DrawingView WITHOUT selecting anything per hand?

Adding Dimensions to DrawingView WITHOUT selecting anything per hand?

infoQ82EV
Contributor Contributor
122 Views
0 Replies
Message 1 of 1

Adding Dimensions to DrawingView WITHOUT selecting anything per hand?

infoQ82EV
Contributor
Contributor

Hey there,

I am searching for quite a while for answers to my problem so maybe you can help me?

Given Situation: Developing in VB.Net no vba or ilogic

I have a Drawingdocumemt, the assemblydocument which is the represented document there as input parameters. This drawingdocumemt do have 1 sheet and about 2 views which am getting without a problem.

So lets say the known parameters are

 

Private Sub CreatyDimensions( DrwDoc as DrawingDocument, AsmDoc as AssemblyDocument)

Dim FrontView as DrawingView = DrgDoc.Sheets.Item(1).DrawingViews.Item("Frontview")

 

'Two different possible Ways detected:

Dim oOcc as ComponentOccurence = GetMySearchedOcc(oDataTable) 'DataTable will know the name i need and the function returns the desired Occurence

Dim curves As DrawingCurvesEnumerator = FrontView.DrawingCurves(oOcc) 'Found this on ModTheMaschine Page

 

Now... This should return all DrawingCurves belonging to that Occurence, n

But for an actual Dimension to be made I only found examples which uses a select from the user, which is not available in this case. I read that i could do via segments or proxies or GeometryIntend but... I have no clue if that is right or how that could be done.

Attribute Helper do not help because the Geometry I do need is controlled by geometry arrays and other things that might be there but not have to be there

 E.g. you have 11 Rectangular Elements and want to set a dimension to the mid one and the forst one. Its a multi body volume.

 

  • Maybe someone can help me?
0 Likes
123 Views
0 Replies
Replies (0)