Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi pschmurr!

Thank you very much for your reply. That actually helped a lot. Based on your response, I've adapted the psse_env_manager.create_dll function that worked well. The code goes as following:

import psse_env_manager
import os

psse_version = 34
conec_file = r"C:\\Users\\...\\conec.flx"
conet_file = r"C:\\Users\\...\\conet.flx"
objlibfiles = r"C:\\Users\\...\\mymodel.obj"
dllname = r"C:\\Users\\...\\dsusr.dll"
workdir = r"C:\\...\\"
ivf_version = 'latest'

psse_env_manager.create_dll(psse_version, conec_file, conet_file, objlibfiles=objlibfiles,
                          dllname=dllname, workdir=workdir, showprg=True, useivfvrsn=ivf_version,
                          shortname='DSUSR', description='', majorversion=1, minorversion=0,
                          buildversion=0, companyname='', mypathlib=False)

To be noted that I use Visual Studio 2015.

Best, Nuno F.

Hi pschmurr!

Thank you very much for your reply. That actually helped a lot. Based on your response, I've adapted the psse_env_manager.create_dll function that worked well. The code goes as following:

import psse_env_manager
import os

psse_version = 34
conec_file = r"C:\\Users\\...\\conec.flx"
conet_file = r"C:\\Users\\...\\conet.flx"
objlibfiles = r"C:\\Users\\...\\mymodel.obj"
dllname = r"C:\\Users\\...\\dsusr.dll"
workdir = r"C:\\...\\"
ivf_version = 'latest'

psse_env_manager.create_dll(psse_version, conec_file, conet_file, objlibfiles=objlibfiles,
                    dllname=dllname, workdir=workdir, showprg=True, useivfvrsn=ivf_version,
                    shortname='DSUSR', description='', majorversion=1, minorversion=0,
                    buildversion=0, companyname='', mypathlib=False)

To be noted that I use Visual Studio 2015.

Best, Nuno F.

Hi pschmurr!

Thank you very much for your reply. That actually helped a lot. Based on your response, I've adapted the psse_env_manager.create_dll function that worked well. The code goes as following:

import psse_env_manager
import os

psse_version = 34
conec_file = r"C:\\Users\\...\\conec.flx"
r"C:\\...\\conec.flx"
conet_file = r"C:\\Users\\...\\conet.flx"
r"C:\\...\\conet.flx"
objlibfiles = r"C:\\Users\\...\\mymodel.obj"
r"C:\\...\\mymodel.obj"
dllname = r"C:\\Users\\...\\dsusr.dll"
r"C:\\...\\dsusr.dll"
workdir = r"C:\\...\\"
ivf_version = 'latest'

psse_env_manager.create_dll(psse_version, conec_file, conet_file, objlibfiles=objlibfiles,
                   dllname=dllname, workdir=workdir, showprg=True, useivfvrsn=ivf_version,
                   shortname='DSUSR', description='', majorversion=1, minorversion=0,
                   buildversion=0, companyname='', mypathlib=False)

To be noted that I use Visual Studio 2015.

Best, Nuno F.