iLogic driven from sub assembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys, I'm having a lot of trouble with a bit of code.
I've spent several hours going in circles and now I'm even more confused.
I'd greatly appreciate any help at all.
I have a parent assembly that contains multiple sub assemblies, two of which need to synchornise with each other.
In the parent assembly, I have created a user form that controls the sizes and quantities of all the different sub assemblies.
Sub assembly 1 contains a bracket for supporting 4 rows of pipes.
Based on the width selected from the main parent assembly, the length of this bracket can vary.
The spacing of the 4 mounting positions is also determined from the length of the bracket.
Sub assembly 2 is an assembly containing all the pipes.
The pipes are spaced apart to suit the bracket using a component pattern, and it is this distance that I want to control from the parent assembly.
This is just one of the basic scripts I've tried.
Pipe_Spacing=Parameter("SubAssembly1:1", "Pipe_Spacing_A")
Parameter("Piping assembly:1", "Pipe_Spacing_B")=Pipe_Spacing
Pipe_Spacing_A is the spacing of the bracket
Pipe_Spacing_B is the component pattern in the piping assembly
Pipe_Spacing is the parameter in the parent assembly to be driven by the bracket parameters.
I have very little iLogic experience & have being learning as I go along with this project.
My best guess is that the code can't loop back on itself but I was hoping someone might know a way around it.
On a slightly different note, I have also noticed that the sub assemblies don't update properly.
If I adjust the width to X and regenerate the model, some of the sub assembly updates.
To fully update, I have to go back into the user form, change the size to Y & then change it back again to X and then regenerate. This is really bugging me, but if I have to, I can live with it.
