AnsweredAssumed Answered

does API macro for drawing require document zoom?

Question asked by Rakesh Venkatesh on Nov 5, 2019
Latest reply on Nov 6, 2019 by Rakesh Venkatesh


I am running into an issue with the SW API macro, when generating a sketch in a drawing document. The sketch has features which are 3mm to 300mm.  The program creates a wrong sketch(of the 3mm feature) unless I zoom into the newly created drawing document. Is this a  bug, or am I doing something wrong? 

I am having to insert a break into the program after the new Drawing document creation, manually zoom in, and then run the rest of the code to create the right drawing.

In the pictures attached below, the correct rectangular features are drawn after the script is paused and document zoomed into.

Just the script by itself produces the triangular features(which are wrong).


If anyone has any idea on how to deal with this, please let me know.