iParts and Member/Part naming using iLogic

iParts and Member/Part naming using iLogic

tschaeferZNBXX
Advisor Advisor
383 Views
1 Reply
Message 1 of 2

iParts and Member/Part naming using iLogic

tschaeferZNBXX
Advisor
Advisor

Does anyone have experience using iLogic to drive an iPart/iAssembly member or part name?

 

We are looking at how we can drive these based off the parameters in the iPart/iAssembly table.

Thomas "Matt" Schaefer
Engineering Tooling and Vault Manager for Material Handling Systems MHS


*AU Speaker 2018*
* AU Speaker 2017 *
==========================================================
Please use the "Accept as Solution" and "Give Kudos" functions as appropriate to further enhance the value of these forums.
0 Likes
384 Views
1 Reply
Reply (1)
Message 2 of 2

clutsa
Collaborator
Collaborator
Dim doc As PartDocument = ThisDoc.Document 'or As AssemblyDocument
Dim CompDef As ComponentDefinition = doc.ComponentDefinition
Dim factory As iPartFactory = CompDef.iPartFactory 'or As iAssemblyFactory
Dim factoryRows As iPartTableRows = factory.TableRows 'or As iAssemblyTableRows
Dim newRow As iPartTableRow 'or As iAssemblyTableRow

'---create new row---'
lastRow = factoryRows.Count
newRow = factoryRows(lastRow).Copy
'---all data must be entered before changing the member name---'
With newRow
        
        Var3 = .Item(3).Value
	Var4 = .Item(4).Value
Part_Number_Var = Var3 & "-" & Var4
Mem_Number_Var = Var3 & "-" & Var4
.Item(2).Value = Part_Number_Var 'part_number .Item(1).Value = Mem_Number_Var 'Member_number End With RuleParametersOutput() InventorVb.DocumentUpdate()
If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State

Custom Glyph Icon for iMates