The term "macro" has a very specific meaning in NX. You may be able to use a macro to create a sketch based on user input; I'm not sure, I've never tried. However, if you are able to use a journal or UGOpen program, you should look at the "SketchShape" example provided with your NX install. [NX install dir]\UGOPEN\SampleNXOpenApplications\.NET\SketchShape