Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
tcaG6GZK
431 Views, 6 Replies

Change value in part list

Hello

 

to "crack" a content center profile in an assembly i have this ilogic routine:

 

Sub Main()
Dim asmDoc As AssemblyDocument = ThisDoc.Document
BU2Each(asmDoc)
End Sub
Sub BU2Each(ByVal asm As AssemblyDocument)
	For Each oRefDoc As Document In asm.AllReferencedDocuments
		If oRefDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject AndAlso asm.ComponentDefinition.Occurrences.AllReferencedOccurrences(oRefDoc).Count > 0
			If oRefDoc.PropertySets.PropertySetExists("ContentCenter")
				Try
					oRefDoc.ComponentDefinition.BOMQuantity.SetBaseQuantity(BOMQuantityTypeEnum.kEachBOMQuantity)
				Catch
				End Try
			End If
		End If
	Next
End Sub

 but now i want another one - with the same function - but instead of "each" there should be the variable "B_L"

can someone pls. tell me how this value needs to be??

 

thx in advance

TC