1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-17 04:43:59 +02:00

[Fix] Fix route to svgs

This commit is contained in:
pcremades
2025-05-11 12:33:43 -03:00
parent 3211fe1f19
commit 5c289bb7f5

View File

@@ -368,7 +368,10 @@ def views(target, do_assemblies = None):
print("### CNC Routed parts", file = doc_file)
keys = sorted(list(routed.keys()))
for i, r in enumerate(keys):
print('%s %d x [%s](dxfs/%s) |' % ('\n|' if not (i % 3) else '', routed[r]["count"], r, r), file = doc_file, end = '')
if(r.endswith('dxf')):
print('%s %d x [%s](dxfs/%s) |' % ('\n|' if not (i % 3) else '', routed[r]["count"], r, r), file = doc_file, end = '')
elif(r.endswith('svg')):
print('%s %d x [%s](svgs/%s) |' % ('\n|' if not (i % 3) else '', routed[r]["count"], r, r), file = doc_file, end = '')
if (i % 3) == 2 or i == len(routed) - 1:
n = (i % 3) + 1
print('\n|%s' % ('---|' * n), file = doc_file)