Hi,Chris_G wrote: ↑Sat Mar 20, 2021 9:28 am The Mapped_Sketch must be attached to the target face (through the Support property, MapMode has no incidence)
The geometries that must be mapped on the target face in the Mapped_Sketch must be contained in a blue Construction rectangle that represent the face bounding box.
I've done everything Chris wrote and I'm still having trouble to get SketchOnSurface work for me.
Simple shapes, sketch of a circle contained in a blue rectangle. This appears:
Code: Select all
20:23:11 Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\FreeCAD\Mod\Curves\Sketch_On_Surface.py", line 244, in execute
if i.Construction and not obj.ConstructionBounds:
<class 'AttributeError'>: 'Part.LineSegment' object has no attribute 'Construction'
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Polish/Poland (pl_PL)