Add New Element
Moderators: silvia, selimgunay, Moderators
Add New Element
Hi Frank,
I'm trying to add the NewTruss(located in OpenSees\PACKAGES\NewCommand) to the solution in VC++2010 and Build the solution but I get several errors and it is not working. it needs some older library and header files and I downloaded and added them. I got some syntax errors! could you please help me.
Thanks,
Ali
I'm trying to add the NewTruss(located in OpenSees\PACKAGES\NewCommand) to the solution in VC++2010 and Build the solution but I get several errors and it is not working. it needs some older library and header files and I downloaded and added them. I got some syntax errors! could you please help me.
Thanks,
Ali
-
- Posts: 140
- Joined: Sun Oct 03, 2010 11:36 pm
- Location: Hong Kong
Re: Add New Element
Try \Win32\OpenSees2005.sln
build Opensees
build Opensees
Research Assistant Professor, The Hong Kong Polytechnic University
guanlin@polyu.edu.hk
guanlin@polyu.edu.hk
Re: Add New Element
Hi linguan,
Thanks for the prompt response.
I did so. I also added Tcl\include and Tcl\lib to the project folders. it didn't work. I removed quiclMain and Built the solution.
Then I tried to add the NewTruss(located in OpenSees\PACKAGES\NewCommand) as a project to the solution in VC++2010.
I got this Error: c1xx : fatal error C1083: Cannot open source file: '..\..\win32Functions.cpp': No such file or directory.
then I added the file to the required folder.
then I got this error: 1>\opensees\packages\win32functions.cpp(5): fatal error C1083: Cannot open include file: 'elementAPI.h': No such file or directory
after adding the location of the file to the properties I got another error: error C2660: 'UniaxialMaterial::setResponse' : function does not take 4 arguments
it seems that there is a problem (maybe version mismatch) that I cant Build it!
is the way I'm adding the New Element (as a project) to the solution is correct?
Thanks again,
Thanks for the prompt response.
I did so. I also added Tcl\include and Tcl\lib to the project folders. it didn't work. I removed quiclMain and Built the solution.
Then I tried to add the NewTruss(located in OpenSees\PACKAGES\NewCommand) as a project to the solution in VC++2010.
I got this Error: c1xx : fatal error C1083: Cannot open source file: '..\..\win32Functions.cpp': No such file or directory.
then I added the file to the required folder.
then I got this error: 1>\opensees\packages\win32functions.cpp(5): fatal error C1083: Cannot open include file: 'elementAPI.h': No such file or directory
after adding the location of the file to the properties I got another error: error C2660: 'UniaxialMaterial::setResponse' : function does not take 4 arguments
it seems that there is a problem (maybe version mismatch) that I cant Build it!
is the way I'm adding the New Element (as a project) to the solution is correct?
Thanks again,
Last edited by alikmo on Tue Apr 05, 2011 6:58 am, edited 1 time in total.
Re: Add New Element
sorry .. the current way to add new materials is shown here:
http://opensees.berkeley.edu/wiki/index ... _Developer
the last link shows how to create a .dll
the examples source code is here:
http://opensees.berkeley.edu/OpenSees/c ... per.tar.gz
http://opensees.berkeley.edu/wiki/index ... _Developer
the last link shows how to create a .dll
the examples source code is here:
http://opensees.berkeley.edu/OpenSees/c ... per.tar.gz
-
- Posts: 4
- Joined: Tue Mar 08, 2011 5:12 pm
Re: Add New Element
"There is currently no text in this page. You can search for this page title in other pages, or search the related logs. "
WHY?
WHY?
-
- Posts: 140
- Joined: Sun Oct 03, 2010 11:36 pm
- Location: Hong Kong
Re: Add New Element
You want to add new element, but why do you use PACKAGES\NewCommand\MyTruss?
Maybe you should make it to build the original files without modification before you add any code of yourself.
Maybe you should make it to build the original files without modification before you add any code of yourself.
Research Assistant Professor, The Hong Kong Polytechnic University
guanlin@polyu.edu.hk
guanlin@polyu.edu.hk