Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Find ilogic sketched symbol bounding box

1 REPLY 1
SOLVED
Reply
Message 1 of 2
ad64
665 Views, 1 Reply

Find ilogic sketched symbol bounding box

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

 

Thanks,

Steve

1 REPLY 1
Message 2 of 2
jdkriek
in reply to: ad64

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.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report