Do prompted entry properties exist in Part or Assembly file? If exist then how can we get prompted entry properties of Part and Assembly file?

Do prompted entry properties exist in Part or Assembly file? If exist then how can we get prompted entry properties of Part and Assembly file?

kawsar.cuetcse
Explorer Explorer
389 Views
1 Reply
Message 1 of 2

Do prompted entry properties exist in Part or Assembly file? If exist then how can we get prompted entry properties of Part and Assembly file?

kawsar.cuetcse
Explorer
Explorer

I have developed a tool by which we can get prompted entry property for drawing file(.idw and .dwg file).

Now, I am searching for prompted entry properties for part and assembly file. Do prompted entry properties exist in Part or Assembly file?

0 Likes
Accepted solutions (1)
390 Views
1 Reply
Reply (1)
Message 2 of 2

JelteDeJong
Mentor
Mentor
Accepted solution

You could use the custom iProperties to act as "prompted entry properties". The rule below will check if a custom iProperty exists and is filled. if not it will ask for a value.

Dim promtedEntries As New List(Of String)
promtedEntries.Add("PromtedProperty1")
promtedEntries.Add("PromtedProperty2")
promtedEntries.Add("PromtedProperty3")

For Each entry As String In promtedEntries
	Try
		Dim entryValue As String = iProperties.Value("Custom", entry)
		If (String.IsNullOrEmpty(entryValue)) Then
			entryValue = InputBox(
				"Plz give value for: " + entry, "None value found")
			iProperties.Value("Custom", entry) = entryValue
		End If
	Catch ex As Exception
		Dim entryValue As String = InputBox(
			"Plz give value for: " + entry, "None value found")
		iProperties.Value("Custom", entry) = entryValue
	End Try		
Next

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes