- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a main assembly that I want to place a sub assembly into. I cannot pre-define the sub assembly file name (because it based on requirement for the line) nor can I define the occurence.item # because I don't know where it will end up in the tree and I may have multiples. What I want to happen is when I place the sub assembly into the main it will prompt me in someway on placement to select a location. I have predefined in my main assembly two constant planes (LINE_TOP and a LINE_DEPTH plane) to constrain (mate) it to these two will be the same for all sub assemblies. In my main assembly I have also defined 10 other planes (my location) as L1_PLANE, L2_PLANE ..... L10_PLANE these are the ones I will need to select the plane name to tell the sub assembly which plane to constrain (mate) to. The mating planes in my sub assembly will be the origin planes.
I have constrained parts in assemblies through use of ilogic/api. But I cannot figure out a good way to be prompted on placement to select a location and then the code know that the line that was just placed is the occurrence that I want to constrain to the defined plane that I select in the prompt.
Here is an example that might help the logic.
I have up to 10 buckets. I always want them to set on the floor and up against one wall, but I do not know the order of the buckets till I set them out.
Solved! Go to Solution.