' Let's say mydb.db is in the same folder as the Inventor documentĭim dbPath = System.IO.Path.Combine(ThisDoc.Path, "mydb.db")ĭim dbConnectionString As String = "Data Source=" + dbPathĭim sqliteCon As SQLiteConnection = New SQLiteConnection(dbConnectionString)ĭim dataAdapter As SQLiteDataAdapter = New SQLiteDataAdapter("SELECT name FROM sqlite_master", sqliteCon)ĭim dataRowCol As DataRowCollection = ds.Tables(0). Visual Studio design-time Support, works with all versions of Visual. Encrypted databases are fully encrypted and support both binary and cleartext password types. It uses less memory at runtime, runs queries faster, and has a smaller database file size as well. The iLogic rule in our document: AddReference "" SQLite's installed size is a fraction of SQL Mobile's. If we are using any functionality inside our app bundle from then the relevant dll's will get loaded into the Inventor Core Console process and will be available by the time the iLogic rule is run public void RunWithArguments(Document doc, NameValueMap map) = contents Ģ) Get the app bundle to load those dll's String contents = System.IO.Path.Combine(bundlePath, addIn = app bundle and that's where the relevant files for are stored: Let's say that the first paameter in the command line provides the path to the In this case, we could do it like this: public void RunWithArguments(Document doc, NameValueMap map) If you want to use it from an iLogic rule, then apart from referencing it (using " AddReference"), you also have to make sure that it can be located.ġ) Update Īs I mentioned in the Use external iLogic Rules blog post, you can modify the file resolution paths used by iLogic. This library is also not available on the Design Automation servers, so you would need to provide it yourself. (now there is also a light-weight library providing similar functionality: and an article on comparing the two) It's not part of the .NET framework install, but available through NuGet: If you need to work with an SQLite database, one way is to use
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |