Copy a project with SQL Lite

Stormbr
Advocate
Advocate

Copy a project with SQL Lite

Stormbr
Advocate
Advocate
I know how to create a project from a template. If I do that and copy drawings, the ortho drawings do not link to the models. If I copy the entire folder to a new location I understand the links are to the original files and any changes happen to the original drawings, not what I want. Is there a method of duplicating a project and changing the links to point to the new models? I have seen the article on how to rename the project. I am using a standalone workstation with SQL Lite.
0 Likes
Reply
Accepted solutions (2)
1,344 Views
11 Replies
Replies (11)

FTSRoann
Alumni
Alumni

Dear Stormbr,

 

I found an article that might be able to assist you with your question. Please follow the link bellow. 

 

AutoCAD Plant 3D: How to create a SQLite project from an existing SQL Server project

 

Please let me know if the suggestion provided did assist you solving the issue. 

 

Mit freundlichen Grüßen,
Kind Regards,

Roann Knight
www.autodesk.com

 

Stormbr
Advocate
Advocate
We are trying to copy sqllite to sqllite projects. We are not going to Sql Server. I think I found a solution using Sql Explorer if I cna get that to work properly.
0 Likes

FTSRoann
Alumni
Alumni

Dear Stormbr,

 

I apologize I miss understood. Did you manage to solve the problem? I just wanted to follow up witn you.

 

 

Mit freundlichen Grüßen,
Kind Regards,

Roann Knight
www.autodesk.com

0 Likes

Stormbr
Advocate
Advocate
Thank Roann but I haven't managed to make the Sql Explorer to work despite following the directions. Downloading the .DLL didn't help, but maybe I have the wrong one. I have renamed all the project names in the XML files but opening the project puts the original project name back in. I understand the names have to change in the .DCF but I have been able to do that so far. So far, it appers simply copying the project to another folder has worked without inimic effects on the original project. I have made changes in the second project without it making changes in the original project, or I should say I have not noticed any changes. Since they are identical projects, changes in the second affecting the first wouldn't be a bad thing.
0 Likes

scott.a.green
Alumni
Alumni

@Stormbr,

 

 

   I think this is closer to what you are looking for:

 

How to migrate an AutoCAD Plant 3D project from SQLite to SQL Server or SQL Express

 

..."Running the PnPProjectMaintenance.exe file will convert a project from the default database (SQLite) to SQL Express or SQL Server. You can also copy or move a SQL Server database to a different database name or server."

 

Hope that is more in line with what you are looking for. You should be able to copy the database over using this method. 



First Name Last Name or First Name.Last Initial
Public Facing Job Title
Link Name | Link Name | Link Name | Link Name
0 Likes

Stormbr
Advocate
Advocate
Thanks Scott but I have seen that link and it doesn't work SqLite to SqLite. I tried it and it doesn't like the SqLite file. I am not migrating either. I need to duplicate a project that uses the SqLite for standalone and make sure the tables point to the right projects. So far I haven't had to change anything in a model so the ortho drawings are not a problem. I can change tables in orthos because they are not linked to the model. I read the SQL Explorer can be used to change the DCF files so they have the correct project name. I need to copy Project A to Project B, but the Project B still says it is Project A. I can change the XMLs to read Project B but opening Project B makes the names reset back to Project A. The DCFs still keep Project A as the name.
0 Likes

scott.a.green
Alumni
Alumni
Accepted solution

@Stormbr,

 

 

   Have you seen this?

 

How to rename a project in AutoCAD Plant 3D respectively AutoCAD P&ID

 

This should allow you to copy the project under a different name - you would need to change these .dcf files:

 

  • piping.dcf
  • processpower.dcf

It could also be a limitation of SQLite. I typically use SQL Server or Vault. 



First Name Last Name or First Name.Last Initial
Public Facing Job Title
Link Name | Link Name | Link Name | Link Name

Stormbr
Advocate
Advocate
Accepted solution
That looks like what I saw for copying & duplicating. I hope this solves issues with links to original files.

scott.a.green
Alumni
Alumni

@Stormbr,

 

 One last thing, creating a NEW project off of the old one and moving over the drawing to the P3D project folder would create a new database and would probably result in less issues along the road rather than copying over the database directly. 



First Name Last Name or First Name.Last Initial
Public Facing Job Title
Link Name | Link Name | Link Name | Link Name

Stormbr
Advocate
Advocate
Thanks again Scott That is the proper method but you have to recreate all the ortho drwings. With custom BOMs it makes it much longer. What I found with copying an entire folder over is that you get all files but the views are not connected. You can't edit viewports. As long as there are no changes to the model then everything is ok. I am doubting renaming everything properly will fix that issue. I haven't checked if naming each view would help so you can load those ortho cubes. I am assuming that the SQLite is used to create the BOM behind the scences but I wonder if it's used for linking the views as well. I have writtenin SQL so I know how it works. Being on a standalone I didn't think it was worth going to SQL Server.
0 Likes

Stormbr
Advocate
Advocate
Many more thanks Scott, this works like a charm. The names are correct and the viewports are editable. I have not changed the model to see if the viewports update but everything looks right now. Viewports are now linked to views.
0 Likes