Iam able to extract text from symbols and detail notes by getting a handle of notes/symbol using the following code,modelitems = detailItemOwner.ListDetailItems(EpfcDetailType.EpfcDETAIL_NOTE, 1)
Now i need to extract Dimension Texts from a drawing.the modeItems that are returning from the above code does not contain dimension textsAny idea on how to extract those informations?
Go to Solution.
Found the solution myselfFor anyone else having the same problem. here you go
For m = 0 To session.ListModels.Count - 1model = session.ListModels.Item(m)Dim ModType As Integer = model.TypeIf model.Type = 1 Or model.Type = 0 ThenMIowner = CType(model, IpfcModelItemOwner)MIs = MIowner.ListItems(EpfcModelItemType.EpfcITEM_DIMENSION)For i = 0 To MIs.Count - 1dimension = MIs.Item(i)dimensions = dimensionshXL.Cells(J, 1) = dimensions.SymbolshXL.Cells(J, 2) = dimensions.DimValue.ToStringshXL.Cells(J, 3) = model.FileNameDim texts As Cstringseq = dimensions.TextsFor t = 0 To texts.Count - 1str = str & texts.Item(t)NextshXL.Cells(J, 4) = strJ = J + 1End TryNextEnd IfNext
View solution in original post