Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Display name problem

1 REPLY 1
Reply
Message 1 of 2
Olgan
284 Views, 1 Reply

Display name problem

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 

 

 

 

1 REPLY 1
Message 2 of 2
Olgan
in reply to: Olgan

and here is the 4th image

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report