General Table in .idw to grab custom iProperty in Part on Active Sheet

General Table in .idw to grab custom iProperty in Part on Active Sheet

Anonymous
Not applicable
474 Views
2 Replies
Message 1 of 3

General Table in .idw to grab custom iProperty in Part on Active Sheet

Anonymous
Not applicable

Lets say you have a part on your drawing and i want to add a 'general table,' however i want to add i new column to it with a custom iproperty from the part in the drawing can this be done? 

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

bradeneuropeArthur
Mentor
Mentor

Convert the part to and I-part.

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

0 Likes
Message 3 of 3

bradeneuropeArthur
Mentor
Mentor
Set sh = b.Sheets.Item(1)

Dim v As DrawingView
Set v = sh.DrawingViews.Item(1)

Dim x As Document
Set x = v.ReferencedDocumentDescriptor.ReferencedDocument

MsgBox x.DisplayName

Dim tb As CustomTable
Set tb = sh.CustomTables.Item(1)

Dim c As Column
Dim t As Boolean
t = False
For Each c In tb.Columns
If c.Title = "YOUR COLUMN" Then
t = True
End If
Next

If t = False Then
tb.Columns.Add ("YOUR COLUMN")
End If


MsgBox tb.Columns.Item("YOUR COLUMN").Title
tb.Rows.Item(1).Item("YOUR COLUMN").Value = x.PropertySets.Item(4).Item(5).Value
End Sub

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

0 Likes