Questions and discussions of a general nature about KnotPlot


Postby user_knotplot on Sun Feb 21, 2010 12:00 am

would it be possible to reply with the location where files save to when exported out as obj., etc.
Posts: 1
Joined: Sat Feb 20, 2010 9:04 pm


Postby rob on Sun Feb 28, 2010 6:08 pm


On Windows computers, you can start KnotPlot either by double clicking on the application itself or on a shortcut. If you do either of these, files will tend to get saved into the KnotPlot installation folder. This is usually not desirable. I like to keep files for specific projects contained in their own folders. If you look in the projects folder included in the KnotPlot distribution, you will see a README file and several example projects. That README describes how to edit the properties of a shortcut so that KnotPlot will start in your project folder as opposed to the installation folder. On some machines you may also have to set the environment variable KNOTPLOT_HOME to point to the installation folder (this isn't the case on XP).

On a Mac, I recommend the following:
  • copy the KnotPlot application to a KnotPlot folder located in your /Applications folder
  • open the Terminal application and create a new directory (folder) that you will use for your project
  • inside that directory, create a new file called runkp (or whatever) and copy and paste the following code into that file:
    Code: Select all

    # make sure all of the directories below are on one line
    foreach loc (/Applications/KnotPlot.app/Contents/MacOS/KnotPlot /Applications/KnotPlot/KnotPlot.app/Contents/MacOS/KnotPlot /Users/rob/Desktop/KnotPlot/KnotPlot.app/Contents/MacOS/KnotPlot)
      if (-e $loc) then
        $loc -keepdir &

    echo KnotPlot not found in normal locations

  • make the runkp file executable
    Code: Select all
    chmod +x runkp
  • start KnotPlot from the command line by running runkp
    Code: Select all
  • KnotPlot will then save to and load from the directory you run runkp from

User avatar
Site Admin
Posts: 35
Joined: Fri Apr 18, 2008 2:23 am

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest