Message 1 of 3
Creating custom iProperties in all Parts of an assembly AND putting them together in one custom iProperty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I have an iLogic snippet, that works perfect for creating the user defined iProperties in all the components (parts and sub assemblies) of an assembly BUT when I want to put these iProperties together into one (divided by a ";") I have a problem!
Here is my snippet:
''' Regel zum Anlegen der Stücklisten iProperties in allen Bauteilen einer Baugruppe Dim doc As AssemblyDocument = ThisDoc.Document For Each refDoc As Document In doc.AllReferencedDocuments Dim customPropertySet = refDoc.PropertySets.Item("Inventor User Defined Properties") '''Anlegen des iProperty "BEMERKUNG" Try Dim test = customPropertySet.Item("BEMERKUNG") Catch customPropertySet.Add("", "BEMERKUNG") End Try Try Dim test = customPropertySet.Item("BEMERKUNG_Z1") Catch customPropertySet.Add("", "BEMERKUNG_Z1") End Try Try Dim test = customPropertySet.Item("BEMERKUNG_Z2") Catch customPropertySet.Add("", "BEMERKUNG_Z2") End Try Try Dim test = customPropertySet.Item("BEMERKUNG_Z3") Catch customPropertySet.Add("", "BEMERKUNG_Z3") End Try Try Dim test = customPropertySet.Item("BEMERKUNG_Z4") Catch customPropertySet.Add("", "BEMERKUNG_Z4") End Try '''Rule to put these custom iProperties together into one called BEMERKUNG (devided by ";") iProperties.Value("Custom", "BEMERKUNG") = iProperties.Value("Custom", "BEMERKUNG_Z1") & ";" & iProperties.Value("Custom", "BEMERKUNG_Z2") & ";" & iProperties.Value("Custom", "BEMERKUNG_Z3") & ";" & iProperties.Value("Custom", "BEMERKUNG_Z4") Next
What is wrong with my rule for the connection of the single iProperties - Bemerkung_Z1, ...?
Thank You for Your help!