社区
Inventor 产品技术应用讨论区
欢迎访问欧特克Inventor论坛!分享知识,发帖提问,浏览Inventor热帖
取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

DisplayName-零件放置順序

4 条回复4
已解决
回复
1 条消息(共 5 条)
sun069099
778 次查看, 4 条回复

DisplayName-零件放置順序

不知道這個是因為什麼原因會變動,要如何改回原本的順序呢?

能重新排列嗎(如:端蓋:1,端蓋:2,端蓋:3,端蓋:4)

sun069099_0-1702947446245.png

 

4 条回复4
2 条消息(共 5 条)

If you place instances of one component, you get end cap: 1, end cap: 2, end cap: 3, end cap: 4

 

If you delete one - say end cap: 3 then the counter does not get fixed automatically.  You can manually fix it by clicking the name in the browser twice (not double-click - just click to highlight, then click again to rename).  

Peter
3 条消息(共 5 条)

可以试试如下iLogic规则

Dim AssyDoc As AssemblyDocument = ThisDoc.Document
Dim oCD As AssemblyComponentDefinition = AssyDoc.ComponentDefinition
Dim dict As New Dictionary(Of String, Integer)()
For Each oCc As ComponentOccurrence In oCD.Occurrences
	oCNm= System.IO.Path.GetFileNameWithoutExtension(oCc.Definition.Document.fullFileName)
	If dict.ContainsKey(oCNm) Then
		dict(oCNm) += 1
	oCc.Name = oCNm & ":" & dict(oCNm) 
	Else
	dict.Add(oCNm,1)	
	oCc.Name = oCNm & ":" & "1"
	End If	
Next


If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!
如果我的回帖解决了您的问题,请点击 "接受为解决方案" 按钮. 这可以帮助其他人更快的找到解决方案!


王 承之
Autodesk AGN [Inventor 俱乐部] Leader
Inventor Club | Bilibili


AGN L    EESignature

4 条消息(共 5 条)


If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!
如果我的回帖解决了您的问题,请点击 "接受为解决方案" 按钮. 这可以帮助其他人更快的找到解决方案!


王 承之
Autodesk AGN [Inventor 俱乐部] Leader
Inventor Club | Bilibili


AGN L    EESignature

5 条消息(共 5 条)

我把瀏覽器節點中的預設改為"品名",

但這個規則是跑檔名的,不知道要如何改成品名重新排列順序呢?

非常感謝~~

找不到想要的内容?向社区提问或分享您的知识。

到论坛发帖  

”