Community
Is there any way to obtain the width and height or bounding box of a sketched symbol?
Thanks,
Steve
Solved! Go to Solution.
Solved by jdkriek. Go to Solution.
There's no bounding box for Sketched Symbols as far as I know. The height and width could be derieved, but it would require setting up your own border using lines and simply adding it up based off that. Depending on what you are trying to do, this might be useful to you:
The Symbol does has a position to which you can map X and Y values to get the orgin.
iLogic:
Dim oIDW As DrawingDocument = ThisDoc.Document Dim oSheet As Sheet Dim oSheets As Sheets = oIDW.Sheets Dim oViews As DrawingViews Dim oView As DrawingView Dim oSymbol As SketchedSymbol Dim oSymbols As SketchedSymbols For Each oSheet In oSheets For Each oSymbol In oSheet.SketchedSymbols If oSymbol.Name = "TEST" Then Dim oPoint As Point2d = oSymbol.Position MsgBox ("X: " & oPoint.x & " Y: " & oPoint.Y) End If Next Next