I have a tube and with ilogic I have different amounts of holes depending on how long the tube.
How can make it so that it always dimensions the holes properly.
It will dimension some holes twice and some holes it doesn't dimension at all.
Without going into VBA and the API, I don't believe there's a way to do this. You may find better assistance with that in the customization forum. My thought is that the ordinate dimensions would need to be deleted and recreated any time the drawing view is updated to prevent the 'sick' dimensions.
Rather than putting ordinate dimensions on the drawing view (and dealing with custom code), have you considered using a hole table? I believe that the hole table will remain associative with the view.
Another thought is to create an iAssembly (warning: iLogic will not persist in iAssembly member files). A single view of the iAssembly may be created, with a generic table associated to it. Something like this:
I agree with Nathan, Lester.
Although it is possible to do this with the API, it is very complicated. Here is a thread where the OP has written code to insert and detail a part: http://forums.autodesk.com/t5/Autodesk-Inventor-Cu