SteveDoyle2 / pyNastran

A Python-based interface tool for Nastran's file formats
Other
385 stars 148 forks source link

export_to_vtk #735

Closed shengqingke closed 1 year ago

shengqingke commented 1 year ago

Hello, I am using export_to_vtk.py, could you add the mode judgment to the instantiation of BDF in the function export_to_vtk_filename?For example, for optistruct files, you should pass parameter mode="optistruct", otherwise the subsequent map_version function is meaningless. And that default mode value is "msc", and subsequent code will be failed.

SteveDoyle2 commented 1 year ago

That function has been removed in favor of pyNastran/converters/nastran/nastran_to_vtk

It takes in an op2 with geometry. The op2 is expected to have a version listed in the binary, which I would assume unless you're throwing special flags (e.g., PARAM,POST,-2 in MSC/NX), it does.

On Mon, Jun 19, 2023 at 3:32 AM shengqingke @.***> wrote:

Hello, I am using export_to_vtk.py, could you add the mode judgment to the instantiation of BDF in the function export_to_vtk_filename?For example, for optistruct files, you should pass parameter mode="optistruct", otherwise the subsequent map_version function is meaningless. And that default mode value is "msc", and subsequent code will be failed.

— Reply to this email directly, view it on GitHub https://github.com/SteveDoyle2/pyNastran/issues/735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWIDZZPNQJPMXL6HBMDXMATEFANCNFSM6AAAAAAZLXRV5Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

shengqingke commented 1 year ago

thanks for your reply, i will try this function.

---- Replied Message ---- | From | Steven @.> | | Date | 06/19/2023 23:00 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [SteveDoyle2/pyNastran] export_to_vtk (Issue #735) |

That function has been removed in favor of pyNastran/converters/nastran/nastran_to_vtk

It takes in an op2 with geometry. The op2 is expected to have a version listed in the binary, which I would assume unless you're throwing special flags (e.g., PARAM,POST,-2 in MSC/NX), it does.

On Mon, Jun 19, 2023 at 3:32 AM shengqingke @.***> wrote:

Hello, I am using export_to_vtk.py, could you add the mode judgment to the instantiation of BDF in the function export_to_vtk_filename?For example, for optistruct files, you should pass parameter mode="optistruct", otherwise the subsequent map_version function is meaningless. And that default mode value is "msc", and subsequent code will be failed.

— Reply to this email directly, view it on GitHub https://github.com/SteveDoyle2/pyNastran/issues/735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWIDZZPNQJPMXL6HBMDXMATEFANCNFSM6AAAAAAZLXRV5Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>