Skip to content

Importing spatial mechanism fails #47

@nyxaria

Description

@nyxaria

Hi, thanks so much for your amazing work. I've been trying to simulate a spatial mechanism the construction of which is quite complex so this package helps out a lot. However, I am not able to import the mechanism I designed into python due to the following error:

Traceback (most recent call last):
  File "/Users/georgehartt/pyss_test.py", line 7, in <module>
    system, entities = slvs_to_py.generate_system()
  File "/Users/georgehartt/slvstopy/src/slvstopy/__init__.py", line 26, in generate_system
    return self._generate_system(self.entity_definition, self.constraint_definition)
  File "/Users/georgehartt/slvstopy/src/slvstopy/__init__.py", line 48, in _generate_system
    constraint_service.construct_constraints(constraint_definition)
  File "/Users/georgehartt/slvstopy/src/slvstopy/services.py", line 213, in construct_constraints
    self.construct_constraint(constraint_definition)
  File "/Users/georgehartt/slvstopy/services.py", line 375, in construct_constraint
    self.constraint_repository.add_parallel(entity_a, entity_b, workplane)
  File "/Users/georgehartt/slvstopy/src/slvstopy/repositories.py", line 333, in add_parallel
    raise NotImplementedError("Workplane cannot be Entity.FREE_IN_3D")
NotImplementedError: Workplane cannot be Entity.FREE_IN_3D

5R.slvs.zip

I have attached the slvs file here, do you mind helping me out? I have an inclination that this is because the python bindings don't support angle between 3d lines -- is this true? If so, how do you recommend I analyse complex 3d linkages without going to C? Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions