I have made tube with varying length.
I placed part in assembly by using "Place iLogic component". and save the assembly.
but after re opening the assembly - again getting dialogue box for enter the length.
i already enter the length in 1st time when created assembly
Solved! Go to Solution.
Solved by PaulMunford. Go to Solution.
Its Autodesk Inventor 2014 version file. find attachment.
If you delete the iLogic rule and form in the part, and tick 'Key' next to length, it should behave as you want.
On insert with iLogic, you will be prompted to set the Lenght, but after that - you won't be prompted again.
Hello,
I would like to ask you if you could help me with below issue.
I would like place eg. pipes into my assembly
I set rule in part (pipe) like this:
dlugosc_rury = InputBox("Wprowadź długość rury w mm", "Długość rury", "") iLogicVb.UpdateWhenDone = True
I would like place it many times to assembly with different length but if i used in assemlby code:
Sub Main() iLogicVb.UpdateWhenDone = True Dim oAsm As AssemblyDocument = ThisDoc.Document For Each oRefDoc As Document In oAsm.AllReferencedDocuments If oRefDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Or oRefDoc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject AndAlso _ oAsm.ComponentDefinition.Occurrences.AllReferencedOccurrences(oRefDoc).Count > 0 On Error Resume Next iLogicVb.Automation.RunRule(oRefDoc, "dlugosc_rury") End If Next End Sub
1. rule run only after component placing (pop up window should be visible before component placing)
2. rule run for all placed pipes (should work separately for each placed parts)
Could you help me with correct code?
thank you
BR
Paweł
Hello,
I would like to ask you if you could help me with below issue.
I would like place eg. pipes into my assembly
I set rule in part (pipe) like this:
dlugosc_rury = InputBox("Wprowadź długość rury w mm", "Długość rury", "") iLogicVb.UpdateWhenDone = True
I would like place it many times to assembly with different length but if i used in assemlby code:
Sub Main() iLogicVb.UpdateWhenDone = True Dim oAsm As AssemblyDocument = ThisDoc.Document For Each oRefDoc As Document In oAsm.AllReferencedDocuments If oRefDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Or oRefDoc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject AndAlso _ oAsm.ComponentDefinition.Occurrences.AllReferencedOccurrences(oRefDoc).Count > 0 On Error Resume Next iLogicVb.Automation.RunRule(oRefDoc, "dlugosc_rury") End If Next End Sub
1. rule run only after component placing (pop up window should be visible before component placing)
2. rule run for all placed pipes (should work separately for each placed parts)
Could you help me with correct code?
thank you
BR
Paweł
Can't find what you're looking for? Ask the community or share your knowledge.