Message 1 of 1
Fusion360 Api- data race condition

Not applicable
01-10-2021
05:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a coordinate list that is in another thread and now when trying to transfer the points from that list to Fusion360, the software is crashing. Is there any locking mechanism available in Fusion360 Api to avoid data race condition?
This is the sample condition i have:
for index in range(len(objList):
line1 = lines.addByTwoPoints(prevPoint, adsk.core.Point3D.create(objList[index][0], objList[index][1], 0))