I have written a macro that queries a couple of sketches within an assembly for coordinates and a couple angles. The equations folder has a degenerating dimension ( d1@sketch1=d1@sketch1-.01). After getting the initial information I force regen the part from within the macro and loop through many times. I tried driving the degenerative equation by smaller increments ( ie .001 ) to get a higher resolution result set, but at about the 289th forced regen, values quit changing. Editing the equations results in an incorrect syntax message ( although syntax is in fact correct ). The only way to recover the useability of the equations is save and exit sw, then restart sw. I have worked around the issue by breaking the area up into smaller segments and working each individually, but its a pain to do so. My question is this. Is it something within SWx limiting the number of forced regens or is it perhaps a limitation of VBA that I am running into?
- posted
18 years ago