Creating and Filling Generic Table from a text file - Jython

MagicDraw OpenAPI, scripting related questions and discussions

Moderator: Moderators

Creating and Filling Generic Table from a text file - Jython

Postby marc.arias@lmco.com » Wed Nov 30, 2022 3:59 pm

The goal of this task was to create a cameo macro that parses a text like file and then grabs these inputs and adds them to a generic table.
I used Jython as the Macro Language. It's important to note when coding the script to be aware that Cameo/No Magic limits the packages and libraries that can be used in Python. The latest version supported is Python version 2.7. Common libraries like Pandas and Numpy are currently not supported which forces you to be creative when trying to find solutions.

There are a lot of solutions and descriptions using Java but not as many using Jython. I know you could convert the code but sometimes it's not that straight forward when you are unfamiliar with the general process of how to solve a task.

Please let me know if you are interested in seeing a solution to this task.
marc.arias@lmco.com
Forum Newbie
Forum Newbie
 
Posts: 7
Posts Rating:1
Joined: Mon Nov 28, 2022 9:16 am

Return to Programmatic Extendibility

Who is online

Users browsing this forum: No registered users and 0 guests