Recapping and expanding: I am trying to have a grand scheme where conveyor leg assets are automatically added/connected to previously-placed conveyor bed assets; then the legs get resized so that they end up touching the ground at global z coordinate zero. I think that’s definitely possible because I noticed that when the legs are connected to the beds and resized, they grow downwards and don’t disturb the position of the beds they are attached to.
(Before you suggest it: Yes, the beds need to be physically separate assets from the legs, for various reasons, both in Inventor and when the layout is synched to ACAD.)
One quick way I think this “could” work: (I’ll assume for a second that the global coordinate values of the connectors themselves cannot be extracted as targets for asset insertion….am I right?) I would insert “dummy features” in every asset that are aligned dead center with the connectors. Then iLogic would gather up all of the global coordinate sets for these features, and use them as insertion points for new assets (the legs).
More about the procedure: New legs would be inserted so that their connectors end up on top of each other. Then the “infer connectors” command would be run, and since they are literally on top of each other, the permanent connection is automatically made.
-----------------------------------------------------------------------------------------------------------------------------------------
Then I moved onto this line of thinking:
Each conveyor bed has a connector for a leg. I tried using some iLogic “insert components code at these coordinates”, but when the assets are inserted this way, there are no connectors showing at all, so I’m guessing that assets MUST be dragged off the palette to function as assets with proper connectors. Oh, well…so then I did some research and came across this:
https://knowledge.autodesk.com/support/factory-design-utilities/learn-explore/caas/CloudHelp/cloudhe...
This seems to be what I’m after…but the programming language is a little over my head; why do I need that long name for the asset? I’m just getting one off the palette, and how can it have an instance number before I even insert it/drag it off the palette?
Also, when trying to do this…do I need to be concerned about the alignment of one asset to another? If that’s the case:
Depending on the global, long-axis orientation of the bed, the leg will either come in aligned perfectly or 90 degrees off (before it’s “connected”)
To solve the alignment problem: Could iLogic be used to align one feature in a part (Factory Asset) with another?
That’s the long-and-short of it. I’d gladly pay for help/write it all for me thru Paypal if that helps.
How do I need to provide the assets in question to anyone? I've never been clear on the folder structure of assets in general. Would you need just the .ipt file or the whole folder for the asset itself?