element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) LTSpice import coming to Mac and Linux-Progress Reports
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 25 replies
  • Subscribers 180 subscribers
  • Views 2446 views
  • Users 0 members are here
Related

LTSpice import coming to Mac and Linux-Progress Reports

autodeskguest
autodeskguest over 9 years ago

Hello All,

 

As mentioned in another thread, I've taken on the task of updating the

LTSpice ULP to work under Linux and Mac. In the other thread I committed

to posting at least once a week on my progress.

 

My goal with this thread besides keeping everyone informed of the

progress, is to document the basic process of updating an existing ULP

and to collect my thoughts as I go through the process.

 

With that out of the way here's what I got so far:

 

This is a large ULP consisting of approx. 4600 lines. Almost 5 times

larger than the biggest ULP I've worked on to date (dxfimport approx.

1000 lines).

 

Alfred, the original author of this ULP deserves a lot of credit for

writing this, it took him almost a year of work IIRC to get it done. The

code is pretty well commented (much of it in German image ) and after

looking through it I've formed a basic idea of how it's structured.

 

In order to make it more manageable, I've split the ULP into sections

using Alfred's comments as a guide. Here's the table of contents:

 

Lines                    Contents

-


               -


1-300               Documentation

300-693               Global Variables

     533-656              Syntax Definition Symbol

695-847               File Functions

849-4140          Export-Import Functions

     889-1874              Export

     1877-4024              Import

     2247-2862          Parse Library Lines

     2865-3858          Parse Schematic Lines

     3859-4024          Import Setup Menu

     4026-4140              Export Menu

4142-4596          Main

     4232-4337              main export

     4339-4596              main import

     4365-4488          import a library

     4490-4573          import a schematic

     4574-4596              main diagnostic

 

 

My plan for now is to traverse these main sections searching for

functions that are OS dependent and then see how I can change them to

not be.

 

I figure that a lot of the code will be unchanged since the functions

that process the contents of the LTSpice file will run directly inside

EAGLE. That's what I'm hoping anyway.

 

Best Regards,

Jorge Garcia

 

  • Sign in to reply
  • Cancel

Top Replies

  • autodeskguest
    autodeskguest over 9 years ago +1
    Hello Everyone, Sorry for missing last week's update, we had to close part of the week due to hurricane Matthew. If you were impacted by this hurricane, then wish you a speedy return to normalcy and that…
  • dukepro
    dukepro over 9 years ago in reply to autodeskguest +1
    On 10/12/2016 06:09 PM, Jorge Garcia wrote: Now I'd like to ask for your opinions on how to proceed. I'm currently trying to determine what the best implementation would be. On one hand I was thinking…
  • autodeskguest
    autodeskguest over 9 years ago in reply to dukepro +1
    Bottom line, I suggest using OS-specific files. To go one further, I would suggest that the OS detection not be done in the main file, but instead be done in a separate file: ltspice.ulp: ... #include…
Parents
  • autodeskguest
    autodeskguest over 9 years ago

    Hello All,

     

    Unfortunately, I don't have much progress to report this week. As it

    turns out WINE is very different on the Mac compared to Linux, I had to

    download Winebottler and get that setup. Using ATOM I found that it

    couldn't handle the german comments well and was just trashing them(I

    guess it's an encoding issue, but I use UTF-8 on everything), so I've

    installed Geany on the Mac and hope to make some good progress next week.

     

    Thanks for the support.

     

    Best Regards,

    Jorge Garcia

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rachaelp
    rachaelp over 9 years ago in reply to autodeskguest

    Jorge Garcia wrote on Fri, 09 December 2016 23:28

    As it  turns out WINE is very different on the Mac compared to Linux, I

    had to download Winebottler and get that setup.

     

     

    Hi Jorge,

     

    What are you needing to install WINE for on the Mac? For linux you

    obviously need it to run LTSpice but there is a native version for the Mac.

    Are there other utilities you are having to use as part of the setup which

    are windows only? If so then maybe there are alternatives that could be

    used instead?

     

    I know what you mean about Atom, it's not perfect, I wish I had a better

    alternative with full ULP support but for the most part, Atom with the .ulp

    extension added to the c syntax works ok for me. I have to admit never

    having tried it with German comments though!

     

    Best Regards,

     

    Rachael

    --

    http://www.eaglecentral.ca :: The original and best browser access to CadSoft EAGLE support forums.  Supported by EAGLE licenses purchased through us :: http://www.eaglelicenses.com

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • rachaelp
    rachaelp over 9 years ago in reply to autodeskguest

    Jorge Garcia wrote on Fri, 09 December 2016 23:28

    As it  turns out WINE is very different on the Mac compared to Linux, I

    had to download Winebottler and get that setup.

     

     

    Hi Jorge,

     

    What are you needing to install WINE for on the Mac? For linux you

    obviously need it to run LTSpice but there is a native version for the Mac.

    Are there other utilities you are having to use as part of the setup which

    are windows only? If so then maybe there are alternatives that could be

    used instead?

     

    I know what you mean about Atom, it's not perfect, I wish I had a better

    alternative with full ULP support but for the most part, Atom with the .ulp

    extension added to the c syntax works ok for me. I have to admit never

    having tried it with German comments though!

     

    Best Regards,

     

    Rachael

    --

    http://www.eaglecentral.ca :: The original and best browser access to CadSoft EAGLE support forums.  Supported by EAGLE licenses purchased through us :: http://www.eaglelicenses.com

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • autodeskguest
    autodeskguest over 9 years ago in reply to rachaelp

    On 12/10/2016 1:13 PM, Rachael wrote:

    Jorge Garcia wrote on Fri, 09 December 2016 23:28

    As it  turns out WINE is very different on the Mac compared to Linux, I

    had to download Winebottler and get that setup.

     

    Hi Jorge,

     

    What are you needing to install WINE for on the Mac? For linux you

    obviously need it to run LTSpice but there is a native version for the Mac.

     

    There is a native version for the Mac, that is true but it's the older

    LTSpiceIV. The ULP also supports the newer LTSpice XVII which is

    currently only available for Windows. In porting the ULP, I've had the

    secondary goal of making sure that the ULP can work with the latest and

    greatest. That's why I need WINE.

    I know what you mean about Atom, it's not perfect, I wish I had a better

    alternative with full ULP support but for the most part, Atom with the .ulp

    extension added to the c syntax works ok for me.

     

    Geany is actually pretty good on the Mac and using the language file I

    made I get pretty much full ULP support. Seeing how extensible Atom is,

    I'm sure it wouldn't be too difficult to make a ULP language file for it.

     

    Thanks for the help.

     

    Best Regards,

    Jorge Garcia

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rachaelp
    rachaelp over 9 years ago in reply to autodeskguest

    Jorge Garcia wrote on Mon, 12 December 2016 16:49

    The ULP also supports the newer LTSpice XVII which is currently only

    available for Windows.

     

     

    Hi Jorge,

     

    I had no idea there was a newer version of LTSpice! How much different is

    is from the earlier version? Have there been lots of versions released for

    windows and no updates for Mac or is this newer version quite a recent

    thing?

     

    Okay so WINE it is then.....

     

    Best Regards,

     

    Rachael

    --

    http://www.eaglecentral.ca :: The original and best browser access to CadSoft EAGLE support forums.  Supported by EAGLE licenses purchased through us :: http://www.eaglelicenses.com

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 9 years ago in reply to rachaelp

    Hi Jorge,

     

    I had no idea there was a newer version of LTSpice! How much different is

    is from the earlier version?

    Functionally it behaves the same. It's has 64-bit support which the

    older version didn't have. Outside of that I haven't found any

    differences on the user side of things. I'm sure there were bug fixes

    and improvements under the hood though.

     

      Have there been lots of versions released for

    windows and no updates for Mac or is this newer version quite a recent

    thing?

     

    The newer version is a relatively recent thing. Hopefully at some point

    they'll have a Mac version but for now I have to deal with WINE on the Mac.

     

    Best Regards,

    Jorge Garcia

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube