Message 1 of 8
APS swapping out models question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Quick question about swapping out models with iLogic rules on APS (Autodesk Platform Services), for those of you that are more recent on this than myself.
with iLogic we can swap models out in 2 ways that I know of.
'use replace to swap the model
Component.Replace("MyPart:1", "Best Part Ever.ipt", True)'use add to swap the model, will add the model if not present
Components.Add("MyPart:1", "Best Part Ever.ipt")
My understanding is that iLogic rule will find the model like this:
- It looks in memory for loaded models and if "Best Part Ever.ipt" is loaded, it uses that.
- If it doesn't find that model in memory, it looks under the *.ipj project file path for the model called "Best Part Ever.ipt"
- If the model is outside of the project path we can use the hard coded path "c:\temp\Best Part Ever.ipt"
If using APS, I think the 3rd option would not be an option for the environment.
Would someone be able to confirm for me that using the Replace and Add functions will work without issue in APS, by simply locating the model from memory or the *.ipj file?
Thanks in advance.