API: Is there a way to draw sketches 'off screen'?

I'm trying to draw a MASSIVE sketch and it's taking a lot of time.

I'm drawing it 'by the hand' .- create sketch, get sketch, than drawing lines and arcs.

now: is there a way to draw all that 'off screen'? I don't really need or want all that lines popping out, i need a sketch to be finished as soon as possible.

I thought ISketchManager::AddToDB would do the trick, but either it doesn't or i'm doing something wrong.

So any kind of help would be greatly appretiated.

thanks

SolidworksApi macros
Answers 4
ST
ST 2013-10-09 Best Answer

ISketchManager::DisplayWhenAdded = False

Don't forget to set it to True after you have finished.


KR
KR 2013-10-09

Shoki,

Also note that you should useIModelView::GraphicsRedraw after using ISketchManager::DisplayWhenAdded, otherwise you won't see anything until a rebuild. Moreover, you can use IModelView::EnableGraphicsUpdate to disable any screeen updating for not only sketches but feature creation, etc. Finally, you can use ISldWorks::DocumentVisible to increase performance with not only sketches and features, but also adding components.

Keith

SolidWorks API Training

SF
SF 2013-10-09

thank you very, very much

now to find a way to speed thing up a bit....

SF
SF 2013-10-09

SWEEEEET thank you for the tips, will get on it right away

thanks again