Working with Multiple Projects in AutoLISP/VisualLISP

Working with Multiple Projects in AutoLISP/VisualLISP

rcreedJMGZM
Participant Participant
471 Views
4 Replies
Message 1 of 5

Working with Multiple Projects in AutoLISP/VisualLISP

rcreedJMGZM
Participant
Participant

Looking for some insight. I am attempting to create a list of block information from one ACAD project and then use this list in a second project to be able to compare and replace block attribute information in the second project. What are my options? Are there commands that would allow me to run the lisp in the second project and be able to pull information from the first projects directory? Has anyone used python, macros, or another method to activate a project and run lisps?

 

Thanks in advance

0 Likes
472 Views
4 Replies
Replies (4)
Message 2 of 5

pbejse
Mentor
Mentor

@rcreedJMGZM wrote:

What are my options? Are there commands that would allow me to run the lisp in the second project and be able to pull information from the first projects directory? 


Look into "ObjectDBX.AxDbDocument" solutions.

Give us a shout if you need  help putting it together

 

0 Likes
Message 3 of 5

Sea-Haven
Mentor
Mentor

Pbejse has given a good answer about "ObjectDBX.AxDbDocument" if it looks daunting you can always write all the values to a text file and run lisp2 in dwg 2 that reads the text file. 

0 Likes
Message 4 of 5

rcreedJMGZM
Participant
Participant

@pbejse 

Okay, I will do more reading on ObjectDBX.AxDbDocument. I have used it in another script to access multiple drawings in the same project but I did not know it would work across projects. 

0 Likes
Message 5 of 5

rcreedJMGZM
Participant
Participant
Yes, another good idea. Writing to a text file is my backup plan if I am not able to get the ObjectDBX working across the projects.
0 Likes