
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Okay... This morning I thought I had a nice, clear plan in my head of how to get this done, and then I didn't. Ain't nothin' easy!
DISCLAIMER: I have just enough experience programming (not in VB) to get me into trouble.
I found a nice snippet of iLogic code that allows me to copy an assembly, rename it via dialog box, and choose a new location to save the assembly and all associated parts. That gets me part of the way to where I want to be, but, first, I can't seem to run that as an external rule on a file opened silently. It just wants to run on the assembly I have open at the time (I understand why this is, I had just hoped it would see the silently opened file as the active file or at least use it if using ThisDoc.Document). I was hoping to leave iLogic mostly out of the assemblies, but if I can't then I can't.
I would like to call this from an external rule, which in turn is called by one main rule (there are about 7 different assemblies I have to be able to place, while also being able to adjust a raw width and height and the associated frame members and regular parts).
Part of my problem is getting the newly created assembly out from the copy code. Am I correct in what I'm reading in that you can't really return variables from iLogic code? If so, that makes this a bit trickier.
So, what I'm looking to do is basically this:
Start Main Rule >> Choose Compartment Configuration (each a separate rule) >> Copy Assembly and Part to New Location >> Change width and height of Skeleton Sketch >> Push Updates to Frame Generator IAM and Master Assembly >> Place Assembly into Active Assembly
The further end goal is to select which side these compartments go on and select the three faces to constrain to, while also using two of those faces (the raw opening) to derive width and height.
Lofty goals, but if anyone has any advice, I'm all ears.
Thanks!
Solved! Go to Solution.