Message 1 of 1
Insert Factory Asset Instance, API to iLogic Conversion ?? Help!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I was able to find the following API code for adding a factory instance to an inventor factory assembly.
using APIv2 = Autodesk.Factory.PublicAPI.Objects.v2; … var api = Autodesk.Factory.PublicAPI.API.Instance; APIv2.AssetInstance newInst1 = new APIv2.AssetInstance() { AssetID = "41c84844-7b28-4903-bebd-365ca3a6a53c", //Straight Belt Conveyor Position = new System.Windows.Media.Media3D.Matrix3D() { OffsetX = 0, OffsetY = 0, OffsetZ = 0 }, }; var insts = api.AddAssetInstances(layout, new PublicAPI.Currency.v2.IAssetInstance[] { newInst1 }); System.Windows.MessageBox.Show(insts.Length.ToString(), "Added instances");
https://help.autodesk.com/view/FDU/2018/ENU/?guid=GUID-45CB93EA-B428-4D16-964A-3FA8EA4B2847
I'm presently running my system of a global form that is filled out by end users. I would like to add an iLogic external rule that will do the same thing without having to use the API. Is this possible?
Regards,
Michael Underwood