File not found error for .dxf file

74 views
Skip to first unread message

Moises Brambila

unread,
Oct 27, 2023, 11:53:48 PM10/27/23
to MachUp Forum
Hello,

I am new to MachUpX and Python. I have been exploring the examples provided. I am currently trying to create .dxf files for the traditional airplane example. I have defined the geometry of the airfoils used in the example. I was also able to generate a .stl file but when I attempt to create the .dxf files I receive the following error:

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\mb844833\\Desktop\\MachUp\\MachUpX\\examples\\Traditional\\traditional_airplane_dxf_files/traditional_airplane_main_wing_left_GC.dxf'

This is how I have been execute the .dxf file command:
my_scene.export_stl(filename = "traditional_airplane.stl")
my_scene.export_dxf(aircraft = "traditional_airplane")

Cory Goates

unread,
Nov 1, 2023, 4:07:12 PM11/1/23
to MachUp Forum
Thanks for pointing this out! It has been fixed. Let us know if you have any issues.

Moises Brambila

unread,
Nov 15, 2023, 5:59:20 PM11/15/23
to MachUp Forum
Hello again. Unfortunately, I am still experiencing the same issue with MachUpX. I cannot export .dxf files from the traditional airplane example. Originally, I had downloaded the zip files of MachUpX. However, I also cloned the github repository, but this has not helped.

Moises Brambila

unread,
Dec 5, 2023, 5:17:46 AM12/5/23
to MachUp Forum
My apologies. I had to perform the git pull command and reinstall. However, now I am having an issue with using polynomial fits for custom airfoils in my aircraft. I was able to generate a .json file of my fits and I have formatted the airfoils I want to use in my aircraft object file as follows:
"airfoils" : {
        "ONERA_airfoil" : {
            "type" : "poly_fit",
            "input_file" : "ONERA_airfoil_fits.json",
            "geometry" : {
            "outline_points" : "ONERA_geom.txt"
            }
        }
    },
When I my script to solve the aerodynamic forces, I receive the following error:

AttributeError: module 'numpy' has no attribute 'asscalar'. Did you mean: 'isscalar'?
PS C:\Users\mb844833\Desktop\MACHUPX\MachUpX\examples\3D ONERA M6 Wing>

Cory Goates

unread,
Dec 5, 2023, 11:14:00 AM12/5/23
to MachUp Forum
Glad you were able to get that figured out!

Hmm.. That's an odd error. Could you post the full stack trace? Also, what does the file "ONERA_airfoil_fits.json" look like?

Moises Brambila

unread,
Dec 5, 2023, 12:26:43 PM12/5/23
to MachUp Forum
I have attached the trace from the terminal, the airfoil generator script I used, and the "ONERA_airfoil_fits.json" file.
ONERA_airfoil_generator.py
Trace.txt
ONERA_airfoil_fits.json

Moises Brambila

unread,
Dec 5, 2023, 12:28:56 PM12/5/23
to MachUp Forum
Please let me know if you would like to also view my aircraft object or the script I used for solving for forces.

Cory Goates

unread,
Dec 7, 2023, 12:50:45 AM12/7/23
to MachUp Forum
Ah. Looks like a depreciated feature of Numpy. I've pushed a fix to AirfoilDatabase. Can you download and install the latest version of AirfoilDatabase and confirm that fixes your problem?

Moises Brambila

unread,
Dec 9, 2023, 2:14:20 AM12/9/23
to MachUp Forum
Hello again. Sorry for the delay in responding. I have downloaded and installed the up to date version of AirfoilDatabase and I am no longer encountering any errors. Thank you.
Reply all
Reply to author
Forward
0 new messages