- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I am working on a problem with some otherwise fully functioning code of mine.
I have an iLogic rule that places a series of sub-assemblies in an assembly file. This works fine.
The same rule allows you to select a sub-assembly and an adjacent sub-assembly and place a series of sub-assemblies between them. This also works fine.
I have code that collects the relevant WorkPlaneProxy objects, and then use the following:
dim distance as double = ThisApplication.MeasureTools.GetMinimumDistance(RunOfSystemsRunDetails.RightDatumWPProxy, RunOfSystemsRunDetails.LeftDatumWPProxy) * 10
This code runs just fine if the measurement is between sub-assembly > sub-assembly, but fails with "the parameter is incorrect" if it runs demoted-sub-assembly > sub-assembly.
I can carry out this measurement using Inventor's measure tool manually, yet I cannot do so using iLogic.
Am I missing something obvious with the API?
Thanks,
Alex.
Alex Fielder
Inventor Expert
https://github.com/alexfielder/
LinkedIn - Github Inventor Extension Server - Bonkers polygon iLogic thing
Top ten iLogic Tips - API Shortcut In Google Chrome - Assembly Extrusion Example
Solved! Go to Solution.