Hi,
there is a little problem which happens once a day..
In general, I am importing a point cloud (around 100 points) and using notes to show the temporary points (Wingdings seems useful from time to time...)
The following routine runs in a 'for' loop. Most of the time it creates all the notes, so I can relocate it properly, but there are cases when at a random [i], it simply crashes SW.
(C#)
for...
{
mPnt[i] = g.ModDoc.InsertNote("x") as INote;
...
}
I can enclose InsertNote in a try/catch block, but the line shown still freezes SW for several seconds, and the user doesn't know, what is happening.
Maybe there is another thread which does something, which prohibits note and sketch creation, but did not find it do far. Maybe a flag somewhere shows if the add-in has to wait before inserting a noter or sketch?
Any help would be great.
Thank you, and happy new year.
SolidworksApi macros