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
ISketchManager::DisplayWhenAdded = False
Don't forget to set it to True after you have finished.
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
thank you very, very much
now to find a way to speed thing up a bit....
SWEEEEET thank you for the tips, will get on it right away
thanks again