I have been looking through the API discussion and have only found one post that addressed this but did not get to an answer so I will try again. If anyone knows a post that answers this please point me there or tell me the key words to be searching.
What I want to do is revolve a feature which in itself is not that complicated. I can get my sketch started and draw the basic profile and draw the revolve line. So far so good, the problem is when I go to apply the dimensions. When I do this my self I would pick the line to dimension, the revolve line, and then click in the area the opposite side of the revolve line to get a diameter dimension. When I try to do this with the API it just creates the radius dimension. I have tried setting diametric to true with the API and that does not help. If I go back to the sketch and look at the dimension properties I can set the dimension to a diameter and it looks right. I am using sw2010 sp 2.1. I admit I am a noob and am probably missing something simply. Any help would be appreciated.
SolidworksApi macros