I need to insert a part (.par) in ASM file at multiple locations. Now i am using AddWithTransform method, which is working fine. But now each time it reads the file from the server and inserts it in ASM. This takes too much time.
Instead, can I insert the part first time using "AddWithTransform" and then copy the same part within that ASM at multiple locations using VB.net ? I think it will be much faster.
have you considered "duplicate component" via the UI?
Frankly speaking no... But how can I duplicate the part at various locations using VB.NET code ?
this very much depends on how you want the parts to be located.
the easiest might be to place new parts and modify its occurrence property X,Y,Z Translations and Rotations
Do you add the part file directly from the server?
I assume, that you are copying it first to your current project folder and then use the AddWithTransform with the copied file.
For additional occurrences, you would then use the copied file again.