Read values from a custom (or general) table in a drawing

Read values from a custom (or general) table in a drawing

Mike_Y2
Advocate Advocate
578 Views
2 Replies
Message 1 of 3

Read values from a custom (or general) table in a drawing

Mike_Y2
Advocate
Advocate

I want to read the value from each row in column 1 of a custom (or general) table.

 

I will then check if the vaule = "Yes" before running further Ilogic

0 Likes
579 Views
2 Replies
Replies (2)
Message 2 of 3

bradeneuropeArthur
Mentor
Mentor
Dim a As Application = ThisApplication
Dim b As Inventor.DrawingDocument = ThisDrawing.Document

Dim t As Inventor.CustomTable = b.ActiveSheet.CustomTables.item(1)

For Each r As Inventor.Row In t.Rows
	If r.Item(1).value = "Yes" then
		MsgBox (r.Item(1).Value)
	End If
	
	Next

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 3 of 3

ngdnam88
Advocate
Advocate

Hi @bradeneuropeArthur 

Please help me the code can get value with more column. Example, at each row I want to get value of column 2 and column 4:

ngnam1988_0-1660701923371.png

 

Thanks,

0 Likes