Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
There is a rule that changes the BaseQuantity of parts for each frame Assembly. How to make a parameter from the part "G_L" or "length" assigned to the note or added to the name at the end.
Sub Main() doc = ThisDoc.Document CompOccurs = doc.ComponentDefinition.Occurrences For Each Occur In CompOccurs OccurDoc=Occur.Definition.Document If OccurDoc.DocumentType<>kPartDocumentObject Then Continue For If Occur.BOMStructure=BOMStructureEnum.kPurchasedBOMStructure Then Continue For Call OccurDoc.ComponentDefinition.BOMQuantity.SetBaseQuantity(BOMQuantityTypeEnum.kEachBOMQuantity) iProperties.Value("Project", "Part Number")=ThisDoc.FileName(False) Next End Sub
Находите сообщения полезными? Поставьте Нравится (Like) этим сообщениям!
На ваш вопрос успешно ответили? Нажмите кнопку 'Утвердить решение'
Рогов Сергей/ Rogov Sergey
Инженер-конструктор
Solved! Go to Solution.