Property ID question

Property ID question

b.bosman
Participant Participant
519 Views
5 Replies
Message 1 of 6

Property ID question

b.bosman
Participant
Participant

Hello helpfull people,

Is there somewhere a list like this

https://forums.autodesk.com/t5/inventor-programming-ilogic/get-set-iproperty-directly-with-id-enum/t...

but with more properties? We would like to use the ID for "Thickness" but we can not find it yet

 

Thanks in advance for all the help

0 Likes
Accepted solutions (2)
520 Views
5 Replies
Replies (5)
Message 2 of 6

bradeneuropeArthur
Mentor
Mentor

Thickness is not part of the Standard Inventor Properties.

Only if you export it in the ParameterBox, then it is available in the Custom Iproperties

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 6

b.bosman
Participant
Participant

Thats indeed the option which we use already to show up in our partslist. But now we have an add in to create an excel export which is created by property ID. In this way we cant acces the custom properties. So maybe I have to ask my question a little different. Is there a piece of code to extract the property ID from custom properties?

0 Likes
Message 4 of 6

yuzeaa
Advocate
Advocate
Accepted solution
Dim doc As Document = ThisDoc.Document
Dim oCustomPropset As PropertySet
oCustomPropset = doc.PropertySets.Item("Inventor User Defined Properties")
For Each oCustomProperty In oCustomPropset
	Logger.Info(oCustomProperty.name & " " & oCustomProperty.PropId)
Next
0 Likes
Message 5 of 6

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Hi @b.bosman,

 

With this piece of I-logic code you can list all Iproperties including the Custom Iproperties.

 

Dim d As Document = ThisDoc.Document
Dim ps As PropertySet 
Dim p As [Property]

 Try
FileNameTekstfile = "Iproperties"
MkDir("C:\templogs\Iproperties")
Catch ex As Exception
End Try
Dim FILE_NAME As String = "c:\templogs\Iproperties\ " & FileNameTekstfile & ".txt"
Dim objWriter As New System.IO.StreamWriter(FILE_NAME, True)

            

For Each ps In d.PropertySets
	objWriter.WriteLine(ps.DisplayName & vbTab & "-" & vbTab & ps.InternalName)
	For Each p In ps
		
		Try
                objWriter.WriteLine(p.Name & vbTab & "-" & vbTab & p.DisplayName & vbTab & "-" & vbTab & p.PropId)
            Catch ex As Exception

            End Try
		Next
	Next 
	
	objWriter.Close()

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 6 of 6

b.bosman
Participant
Participant

Thank you guys, this was very helpfull