iLogic find welding symbols with leaders

iLogic find welding symbols with leaders

Guido.LangeTuchscherer
Enthusiast Enthusiast
915 Views
4 Replies
Message 1 of 5

iLogic find welding symbols with leaders

Guido.LangeTuchscherer
Enthusiast
Enthusiast

Hi there,

 

we are using welding symbols similar to leader notes, see image.

 

Thanks for any Help.

 

 

Dim dDoc As DrawingDocument
dDoc = ThisDoc.Document

Dim dSheet As Sheet
dSheet = dDoc.ActiveSheet

	'Prüfung ob schon gespeichert wurde
	If System.IO.File.Exists(dDoc.FullFileName) Then
		
		'Dateiname auslesen	
		Dim dFI As New System.IO.FileInfo(dDoc.FullFileName)
		
		'Prüfung ob datei bearbeitet werden darf und geändert wurde
		If dFI.IsReadOnly = False And ThisDoc.Document.Dirty = True Then
			
			If dDoc.DocumentType = kDrawingDocumentObject Then 'ThisDoc.Document.DocumentType = kDrawingDocumentObject Then
'				MsgBox("Zeichnung") 'Funktioniert
			End If
		End If
	End If
	
	
	' Iterate over all Weldingsymbol in the drawing
   
	Dim oTG As TransientObjects
	    oTG = ThisApplication.TransientObjects
		
	Dim dLeaderCollection As ObjectCollection
	    dLeaderCollection = oTG.CreateObjectCollection		
	
	
	Dim dLeaderNote As LeaderNote 
	
	For Each dLeaderNote In dSheet.DrawingNotes.LeaderNotes
		 	 dLeaderCollection.Add(dLeaderNote)
			 MsgBox(dLeaderNote.Text & " | " & dLeaderNote.Type.ToString & " | " & dLeaderNote.DimensionStyle.Type.ToString)
	Next
0 Likes
916 Views
4 Replies
Replies (4)
Message 2 of 5

chandra.shekar.g
Autodesk Support
Autodesk Support

@Guido.LangeTuchscherer ,

 

Unfortunately, weld symbols are not supported by Inventor API (iLogic). Please log a wish list at the idea station using the below link.

 

https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232

 

Thanks and regards,

 


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 5

Guido.LangeTuchscherer
Enthusiast
Enthusiast

Thanks @chandra.shekar.g,

 

but what does this mean then:

Inventor 2021 Drawings

The ThisDrawing object now implements the new IManagedDrawing interface (which inherits from the older ICadDrawing interface). ThisDrawing now supports managed drawing objects: dimensions and annotations.

 

Source:

https://help.autodesk.com/view/INVNTOR/2022/DEU/?guid=d7415521-ae14-4fab-ab1b-85086d6c0bc9

 

I thought welding symbols would be some kind of annotations?

 

Regards

 

 

0 Likes
Message 4 of 5

chandra.shekar.g
Autodesk Support
Autodesk Support

@Guido.LangeTuchscherer,

 

Introduction of API related to weld symbol is already noticed by many users. It has been reported as a wish list at idea station.

 

Weld symbols exposed in the API in assemblies - autodesk

 

Engineering team is observing all wish list. If more number of users are observing, it may be considered in future release of Inventor.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 5 of 5

Guido.LangeTuchscherer
Enthusiast
Enthusiast

Thanks @chandra.shekar.g I understand that,

 

What does this mean though?

"The ThisDrawing object now implements the new IManagedDrawing interface (which inherits from the older ICadDrawing interface). ThisDrawing now supports managed drawing objects: dimensions and annotations."

See Links above.

 

Thanks for your Answer and the Links.

0 Likes