Andrew Moa Blog Site

Ansa Custom Parameters and Formulas

1. Define parameters

Custom parameters in ANSA are relatively simple. Right-click in the input box to open the menu and select List variables, then create a new variable in the A_PARAMETERs dialog and assign a name to that variable.

For example, here the material parameter is assigned as a custom parameter:

  1. Right-click to select the list variables.

    1710a219-f3ec-4b94-8118-737a0de05c66

2 minutes to read
Andrew Moa

Dependency Issues of CPack

Previously, when using CPack to package a QML program, I noticed that the files installed by the CPack package differed significantly from those installed using the cmake install command. Below, I will explain and resolve this issue.

1. Problem code

Let’s take the previously written QML program as an example. To facilitate code improvements, the CMakeLists.txt is rewritten as follows, with dependency installation and packaging modules written separately into cmake/dependencies.cmake and cmake/packaging.cmake.

8 minutes to read
Andrew Moa

Running macOS on Ubuntu via Docker

Recently, due to development needs, I needed to test and verify the application being developed on the macOS platform. Unfortunately, I don’t have a Mac, and my budget is tight. So I considered installing a macOS virtual machine on my workstation at work to solve the urgent problem.

I had previously tried installing it through VirtualBox, but it ended in failure. Later, I read that some experts had installed macOS via Docker12, so I decided to give it a try.

2 minutes to read
Andrew Moa