这是indexloc提供的服务,不要输入任何密码
Skip to content

Mac run #11

@rafaelpirolla

Description

@rafaelpirolla

Definitely not a lalboard issue but I may do a pull request for docs if I make this run.

If I try to run a script named lalboard from vscode and then try to debug a test one like this:
test.py:

import adsk.core

from fscad import *
relative_import("./lalboard.py")
import lalboard


def design():
    sphere = Sphere(1)
    sphere.create_occurrence(True, scale=.1)


def run(_):
    lalboard.run_design(design)

It doesn't work.

If I put the code inside the lalboard.py script (without the relative_import of course), then it works from vscode...
What's up with this naming convention from Fusion? Can't I just open the port for API usage in Fusion without this undocumented correlation between file name and script name...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions