Tag: C#
-
Lesson 4A: Convert script to an Add-in(C++/Python)
Python C++ After creating an add-in, we’ll have a project structure like below. Same as the script, they entry point is in the BasicAddin.py. Let’s take a look at it. # Assuming you have not changed the general structure of the template no modification is needed in this file. from . import commands from .lib…
-
Lesson 3: Create a shoebox
Python C++ Typescript @dataclass class BoxParameters: border_thickness : float bottom_thickness : float inner_width : float inner_length : float inner_height : float fillet_size : float def __init__(self, border_thickness: float, bottom_thickness:float, inner_width:float, inner_length:float, inner_height:float, fillet_size:float): self.border_thickness = border_thickness self.bottom_thickness = bottom_thickness self.inner_width = inner_width self.inner_length = inner_length self.inner_height = inner_height self.fillet_size = fillet_size typedef struct { double…
-
Lesson 1: The basic scripts and Add-in
Python/C++ Typescript 1. Launch Fusion, find utilities and click at the drop menu of ADD-INS button. You can find Scripts and Add-ins menu item. 2. Click at it, in the new window, we can create two types of add-ins: Scripts and Add-ins. There isn’t much different between them technically. The script will run at once…
-
Maya 2024 API Update guide
The guide is based on What’s New in the Maya Devkit in Maya 2024 with some extra info. For more details including commands and scripts changes, please checkout the documentation for more details. Building environments In Maya 2024, we made significent changes on the building environment. The minimum supported version of CMake has been updated…
-
Sorting “invalid arguments” error in C# add in code for generating 3D PDF in Inventor
<?xml encoding=”UTF-8″>The VB.NET add-in for 3D PDF generation works well and directly without issues. However, the C# API code throws an invalid arguments error at the Publish() method. This is because the code uses late binding. This blog contains steps on how to resolve this error Step 1:As mentioned in this blog (here) set the…

You must be logged in to post a comment.