Author: Xiaodong Liang
-
Fusion API: Default Paths to Load Add-In
By Xiaodong Liang Question: Will Fusion 360 load an add-in from the path (%AppData%) only? Is there any other paths I can configure? Solution: A couple of other paths are available for Fusion to look for the add-in. This is missed in the API help. %programfiles%\Autodesk\ApplicationPlugins%programdata%\Autodesk\ApplicationPlugins%appdata%\Roaming\Autodesk\ApplicationPlugins%appdata%\Roaming\Autodesk\Autodesk Fusion 360\API\AddIns
-
Fusion API: HTTP Request in Fusion 360 by Python
<?xml encoding=”UTF-8″>By Xiaodong Liang For a session of AU China, I produced a small demo on how to connect designer, customer and vendor by Fusion 360 API and Forge. In the process, I borrowed some codes of HTTP Request from the add-in of MakeTime. This add-in uses a typical Python module: requests . I think it…
-
Forge Formats Python Script and IFC Open Shell
I went back to answering way too many questions in the Revit API discussion forum yesterday. However, two other interesting topics also cropped up when I finally let go of that pastime, and I just finished a good book – The Sellout by Paul Beatty – IFC Ids and Open Shell – Forge Python scripts…
-
Fusion API: Attribute returns none for the Face that has been attached attribute
<?xml encoding=”UTF-8″>By Xiaodong Liang Question: I attached the attributes to some selected faces of an assembly. When I iterate the faces of each component and try to find out those faces, they returned none attributes. My code is as below. It assumes a face has been selected in the assembly. def main(): ui =…
-
Fusion API: Which API I should choose?
By Xiaodong Liang Fusion API provides 3 types of languages: Python, JavaScript and C++. I found an interesting discussion on Fusion API forum, where our API designer Brian Ekins gave an answer on the specifics of each language. To make it more searchable on internet, I posted it in the blog. And we could polish…
-
iLogic: ActiveDocument.ComponentDefinition throws exception for specific document
By Xiaodong Liang Recently, we got a strange issue. With a specific dataset, we opened all files in cascade views, then activated each document and ran an external rule. The rule is quite simple. It just gets the document ComponentDefinition and access parameters. Dim compDef = ThisApplication.ActiveDocument.ComponentDefinition For most documents, it works well. but for…
-
Roomedit3dv3 Diff from Forge Boilerplate Code
I am preparing the Forge and BIM presentation and hands-on workshop this coming Friday at Technische Universität Darmstadt, Institut für Numerische Methoden und Informatik im Bauwesen, the institute for numerical methods and computer science in the construction industry at the technical university in Darmstadt. Now I prepared a detailed analysis of the exact changes I…
-
Fusion API: Usage of Table Control
<?xml encoding=”UTF-8″>By Xiaodong Liang Fusion provides various types of controls (CommandInput) for a command. There is a Python demo in API help. Table type is available with API. It can even embed sub controls within the table or table cell, by which we can implement more scenarios of customization. In my practice recently, I got…
-
Create Sketch Text on Face of Assembly
<?xml encoding=”UTF-8″>By Xiaodong Liang Question: In a assembly (or part), I want to select a face, on this face I want the Partnumber as a sketh text, (with a big font) Is there a simple solution? Answer: The code below assumes a face of assembly is selected, and a planar sketch will be created on…
-
Fusion API: Usage of Mouse Event
<?xml encoding=”UTF-8″>By Xiaodong Liang Custom actions with mouse are widely used in an add-in. Fusion provides MouseEvents that monitors the events. The custom Command object contains the corresponding functions such as Command.mouseClick(), Command.mouseMove() and Command.mouseWheel() etc. By this methods, the add-in will hook the mouse behaviors and grab the data for custom workflow. The typical…

You must be logged in to post a comment.