Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone, new one here. First post.
I am trying to code some things for my company and i am using different forms to fill in iproperties.
The case is that i want to set 3 custom iproperties but in the display box i dont want to show the name of the variables
i would like to show a custom text defined by me.
This is my code
customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties") Dim iprop(3) As String iprop(1) = "DESCRIPTION" iprop(2) = "NyfanID" iprop(3) = "NyfanCurrentRev" For k = 1 To 3 Dim prop(k) As String Try prop(k) = iProperties.Value("Custom", iprop(k)) Catch 'Assume error means not found customPropertySet.Add("", iprop(k)) iProperties.Value("Custom", iprop(k)) = "null" End Try Next For j = 1 To 3 Dim var(j) As String If iProperties.Value("Custom", iprop(j)) = "null" Then var(j) = InputBox("ΣΥΜΠΛΗΡΩΣΕ ΤΙΜΗ ΓΙΑ: " & iprop(j), "ΚΑΤΑΧΩΡΗΣΗ ΤΙΜΩΝ", "") iProperties.Value("Custom", iprop(j)) = var(j) End If Next
And this is the message prompt:
Where instead of Description i would like to say something else like "Περιγραφή" but i want to keep the variable as
description.
is there any way to do this? I am guessing i should "Break" the for command and do it somehow individually.
Solved! Go to Solution.