AutoCAD Plant 3D Forum
Welcome to Autodesk’s AutoCAD Plant 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Plant 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Plant 3D Current Project Name

2 REPLIES 2
Reply
Message 1 of 3
reactor386
611 Views, 2 Replies

Plant 3D Current Project Name

Help, Please!

Is there a way to get current project name for Plant 3D project?

In Vanilla AutoCAD there is PROJECTNAME variable, but for Plant 3D project it remains set to empty string.

I need to know the project name to load dot net libraries depend project.

I use LISP to load dot net libs and can I get opened project name during start acaddoc.lsp?

2 REPLIES 2
Message 2 of 3
rchiasson
in reply to: reactor386

I'm not familiar with how you are calling on the information, but if you notice in Properites > General Settings > Project Details, there is a field for Project Name. If you pull up the Field command, under Project, there is CurrentProject, it displays the field expression as %<\PnID ProjectDetails.General.Project_Name>%

 


Hope this points you in the proper direction.

Message 3 of 3
jshimkus
in reply to: reactor386

Better late than never.

 

Heres how I get the current project name in MEP

 

(vl-filename-directory
(vl-registry-read
(strcat "HKEY_CURRENT_USER\\"
		  (vlax-product-key)
		  "\\Recent Project List\\")"Project1"))

 

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

Post to forums  

Autodesk Design & Make Report

”Boost