Creating design points
I am writing an add-on to import points from a text file into an Design session. This is the code I am using:
This work ok for a small number of points, say 20 to 30. As the number of points increases, the time taken to import them increases exponentially. I inserted a progress bar in the for loop and found that the creation of points is fairly quick at the start and then slows down to a crawl when the points reach 100 or so. 100 is far too less, since the number of points that my add-on will eventualy be used to import will run into thousands.
Am I doing domething wrong? I surely hope so.
Deelip Menezes
I am writing an add-on to import points from a text file into an Design session. This is the code I am using:
Code:
IADDesignSessionPtr pDesignSession = NULL;
pSession->QueryInterface(&pDesignSession);
for(....)
pDesignSession->GetDesignPoints()->CreatePoint(x, y, z, \"Point\");
Am I doing domething wrong? I surely hope so.
Deelip Menezes