- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
FYI, when you say
dim7a=False, you are telling Inventor to use the Boolean True\False. It sees that the value needs a numeric (double) so it automatically converts the Boolean to its bit (tiny integer) value 0,1, then stores the False equivalent (0) to your variable. Turning it to 0 does not remove it, as you can tell.
DRoam is right, there are easier methods from the 3D modeling environment. To address the 3D issue, you could model it in 3D and then project the modeled geometry back to a single 2D sketch (like a completed view/flat pattern) that you update and use for your CNC.
However, with iLogic (better to use VB.Net, with Visual Studio at this level) and a LOT more setup and coding, you can create a sketch with holes, then add attributes to the circles (via code), then save that sketch for reuse as a template, where you can find the circles that have your tagged attributes and delete them via code (or set construction).
Another method using all parameters is to create a pattern in a sketch. Component patterns (arrays) can take a single item (like your hole circle) and make it many (square or circlular). The neat part is the pattern's count is a parameter you can label, find and edit. The bad part is there must at least be 1 or it will not work. Also you could use the parameter of the pattern to chase the sketch objects back to the original circle and set its construction mode on/off as you need. If you dimensioned the first hole's position, you could chase that back to the circle too.
Is it possible, yes. Do you want to work that hard? The journey definitely becomes its own reward when you gain the tools and skills to knock out problems like these in a flash.