Display name problem

Display name problem

Olgan
Enthusiast Enthusiast
419 Views
1 Reply
Message 1 of 2

Display name problem

Olgan
Enthusiast
Enthusiast

hi,

 

i have a weird problem. I've attached 4 images. Shouldn't the underlined display names be the same for the first two images like the forth one? for some other part files i have those 3 the same but for this part (which was generated via content center and re-named) they are different. I've played with different names and it seems like it just hides the extension on one of them for this file. (and its the opposite for the 3rd image)

 

I need this for the attached ilogic code which says it can't find the file although file-occurance-display-browser (don't know if there are any other!) names are the same

 

thx in advance

 

 

 

 

Dim openDoc As Document
openDoc = ThisDoc.Document
i = New integer(){1,2,3}
j = New integer(){1,2,3}
Dim docFile As Document
i=1001
j=10
If openDoc.DocumentType = 12291 Then

	For Each docFile In openDoc.AllReferencedDocuments

	If  docFile.ComponentDefinition.BOMStructure = 51970 Then
		
		If docFile.DocumentType = 12290  Then
	
			iProperties.Value(docFile.DisplayName, "Project", "Project") = Project
			iProperties.Value(docFile.DisplayName, "Project", "Part Number") = Project_Code+CStr(Group_Code)+"."+Right(CStr(i),3)
			i=i+1
		
		End If 
		
		If docFile.DocumentType = 12291 Then
			
			iProperties.Value(docFile.DisplayName, "Project", "Project") = Project
			iProperties.Value(docFile.DisplayName, "Project", "Part Number") = Project_Code+CStr(Group_Code+j)
			j=j+1
		
		End If 
	End If
	Next
	
End If 

 

 

 

0 Likes
420 Views
1 Reply
Reply (1)
Message 2 of 2

Olgan
Enthusiast
Enthusiast

and here is the 4th image

0 Likes