Great!pvandeneynde wrote: ↑Sat Nov 14, 2020 9:36 amIt works indeed as a alpha version.. congrats for the package and happy to dive into its possibilities!
Great!pvandeneynde wrote: ↑Sat Nov 14, 2020 9:36 amIt works indeed as a alpha version.. congrats for the package and happy to dive into its possibilities!
Code: Select all
from freecad.trails import geo_origin
origin = geo_origin.get(vector)
Code: Select all
zone = origin.UtmZone
geo_origin = origin.Origin
Excellent!HakanSeven12 wrote: ↑Tue Nov 17, 2020 11:50 amIf there is an object funtion returns it. If not, function will create a new object. Vector is optional. If origin.Origin is (0,0,0) it use vector variable as origin. It has two properties.
Code: Select all
22:14:19 Missing Spiral Center coordinate in alignment K1 A Kolu
22:14:19 Missing Spiral Center coordinate in alignment K1 A Kolu
22:14:19 Missing Spiral Center coordinate in alignment K1 A Kolu
22:14:35 Traceback (most recent call last):
File "/home/balrobs/.FreeCAD/Mod/Trails/freecad/trails/design/project/tasks/alignment/import_alignment_task.py", line 74, in accept
result = alignment.create(_v, _v['meta']['ID'] + ' Horiz')
File "/home/balrobs/.FreeCAD/Mod/Trails/freecad/trails/design/alignment/alignment.py", line 70, in create
result.set_geometry(geometry, zero_reference)
File "/home/balrobs/.FreeCAD/Mod/Trails/freecad/trails/design/alignment/alignment.py", line 365, in set_geometry
self.model = alignment_model.AlignmentModel(geometry, zero_reference)
File "/home/balrobs/.FreeCAD/Mod/Trails/freecad/trails/design/alignment/alignment_model.py", line 58, in __init__
if not self.construct_geometry(geometry, zero_reference):
File "/home/balrobs/.FreeCAD/Mod/Trails/freecad/trails/design/alignment/alignment_model.py", line 118, in construct_geometry
self.validate_stationing()
File "/home/balrobs/.FreeCAD/Mod/Trails/freecad/trails/design/alignment/alignment_model.py", line 523, in validate_stationing
TupleMath.subtract(geo_coord, prev_coord))
File "/home/balrobs/.FreeCAD/Mod/Trails/freecad_python_support/tuple_math.py", line 140, in subtract
return TupleMath._operation(op_sub, op1, op2, fail_on_empty)
File "/home/balrobs/.FreeCAD/Mod/Trails/freecad_python_support/tuple_math.py", line 114, in _operation
return tuple(map(op, _op1, _op2))
<class 'TypeError'>: First arg must be Vector
Code: Select all
OS: Ubuntu 20.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23074 (Git) AppImage
Build type: Release
Branch: master
Hash: 74b866ed3022fd1452c534dae31a721bcc668f2f
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
Either manually download nor AddOn manager will fetch the submodules.HakanSeven12 wrote: ↑Mon Nov 30, 2020 8:47 amI didn't test with addon manager. I'm using visual studio code and git assistant to pull all files. But you can manually download repos an put them where they should be.