Find ilogic sketched symbol bounding box

Find ilogic sketched symbol bounding box

ad64
Advocate Advocate
796 Views
1 Reply
Message 1 of 2

Find ilogic sketched symbol bounding box

ad64
Advocate
Advocate

Is there any way to obtain the width and height or bounding box of a sketched symbol?

 

Thanks,

Steve

0 Likes
Accepted solutions (1)
797 Views
1 Reply
Reply (1)
Message 2 of 2

jdkriek
Advisor
Advisor
Accepted 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
Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


0 Likes