ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using sqlite3 to operate the database test.db

9 REPLIES 9
Reply
Message 1 of 10
463017170
789 Views, 9 Replies

Using sqlite3 to operate the database test.db

test.pngUsing sqlite3 to operate the database test.db

 

Can you help me see how to create, add, and modify a database? Thank you!

9 REPLIES 9
Message 2 of 10
daniel_cadext
in reply to: 463017170

Maybe have a look at this project for inspiration

https://www.theswamp.org/index.php?topic=28286.0

 

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
Message 3 of 10
463017170
in reply to: daniel_cadext

Thank you for your reply! I think it should be an ARX syntax issue?

Message 4 of 10
tbrammer
in reply to: 463017170

Unless I can't read the (chinese?) error messages I assume that the linker complaints about unresolved externals, right? Due to "std::basic_string<char...>" I suspect that this might be an UNICODE/ANSI issue.


Thomas Brammer ● Software Developer ● imos AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

Message 5 of 10
463017170
in reply to: tbrammer

Can you help me take a look at my code? Thank you very much!

Message 6 of 10
daniel_cadext
in reply to: 463017170

The best way to approach this is to download the SQLite Amalgamation

https://sqlite.org/download.html

 

Setup your solution with two projects.

Compile the SQLite Amalgamation as a static library

Static link to the new library from your ARX project.

 

This way you won’t have any DLLs to load.

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
Message 7 of 10
daniel_cadext
in reply to: 463017170

Here's an old project that should better illustrate, it's an old version of SQLite, you can probably just drop in the new Amalgamation

 

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
Message 8 of 10
463017170
in reply to: daniel_cadext

Thank you very much for your reply! Lisp is not familiar with it.

Message 9 of 10
daniel_cadext
in reply to: 463017170

The lisp is not required, but you can see how to use it from C++

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
Message 10 of 10
463017170
in reply to: tbrammer

Can you help me modify test.rar?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report