Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Dreaded ConfigCommand.py Refactor [AARD-1764] #1107

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exporter/SynthesisFusionAddin/src/Parser/ExporterOptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ExporterOptions:
# Python's `os` module can return `None` when attempting to find the home directory if the
# user's computer has conflicting configs of some sort. This has happened and should be accounted
# for accordingly.
fileLocation: str | None = field(
fileLocation: str | os.PathLike[str] | None = field(
default=(os.getenv("HOME") if platform.system() == "Windows" else os.path.expanduser("~"))
)
name: str | None = field(default=None)
Expand All @@ -52,7 +52,7 @@ class ExporterOptions:
compressOutput: bool = field(default=True)
exportAsPart: bool = field(default=False)

exportLocation: ExportLocation = field(default=ExportLocation.UPLOAD)
exportLocation: ExportLocation = field(default=ExportLocation.DOWNLOAD)
openSynthesisUponExport: bool = field(default=False)

hierarchy: ModelHierarchy = field(default=ModelHierarchy.FusionAssembly)
Expand Down
4 changes: 2 additions & 2 deletions exporter/SynthesisFusionAddin/src/Resources/HTML/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<script>
window.location.replace("https://synthesis.autodesk.com/tutorials.html")
window.location.replace("https://synthesis.autodesk.com/codelab/FusionExporterCodelab/index.html#0")
</script>
<style>
.redirecting {
Expand All @@ -18,4 +18,4 @@
<h1>Redirecting...</h1>
</div>
</body>
</html>
</html>
3 changes: 3 additions & 0 deletions exporter/SynthesisFusionAddin/src/Types.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ class ModelHierarchy(Enum):
LBS: TypeAlias = float
PRIMITIVES = (bool, str, int, float, type(None))

# All currently supported Fusion joints
SELECTABLE_JOINT_TYPES = (adsk.fusion.JointTypes.RevoluteJointType, adsk.fusion.JointTypes.SliderJointType)


def encodeNestedObjects(obj: Any) -> Any:
if isinstance(obj, Enum):
Expand Down
Loading
Loading