Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'd like to know, how I can loop through the IManagedDrawingDimensions (interface)
some explanation below
Dim iSheet As IManagedSheet = ThisDrawing.ActiveSheet Dim iDrawingDims As Autodesk.iLogic.Interfaces.IManagedDrawingDimensions = iSheet.DrawingDimensions For Each iDrawingDim As IManagedDrawingDimension In iDrawingDims '(I wanna do something like this which is kinda similar to the for each loop down below) '(the id is to get the name of the drawingDimension) MessageBox.Show(iDrawingDim.Name) 'I know that iDrawingDims is an interface and this won't work. but how can I do it? 'I wanne loop through al the dimensions to get the name Next For Each oDrawingDim As DrawingDimension In InventorApp.oDrawingDoc.ActiveSheet.DrawingDimensions '(similar to this) Next
Solved! Go to Solution.