AutoCAD Electrical
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
rename Drawing Name
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Can we rename Drawing Name using Vb.net in autocad electrical?
I used the code Rename(oldpath,Newpath)
But its not work,Please Send Code If anybody know..
Re: rename Drawing Name
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
File name is part of the project file (text file with .wdp extension).
If file name is changed, it must be changed in the project file too, so that ACADE Project Manager can find that file.
Regards,
Vladimir
Re: rename Drawing Name
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
how can we get Wdp File through vb.net code?
Re: rename Drawing Name
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
ACADE has AutoLISP API.
You use c:wd_proj_wdp_data function to read wdp file, and c:wd_proj_wdp_write to write to wdp file.
There are samples how to use API with Object ARX and Visual Basic.
Hope this helps.
Re: rename Drawing Name
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
i renamed drawing and i also changed WDP file.
i can see in the folder,but in autocad i cant get that..
It will be renamed in folderwise and WDP file also,
but it doesnot show in autocad electrical..
Re: rename Drawing Name
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I renamed drawing in folder and WDP file..It renamed well...
But i cant see in autocad electrical at that time,Once i restart autocad electrical it will renamed correctly..
Autocad electrical is not refresh,if i click refresh icon it will not refresh,,
But if i open another autocad electrical,it renamed correctly.
Re: rename Drawing Name
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi
Why are you trying to do what you are asking? It is all so simple using the ribbon. This might be an excuse as I do not understand the programme you are writing.
To change the drawing names the files must be in the project with the project active. Close the drawing within the project and then rename the drawing. Use the rename button within the project. This does all the house work for you.
I will follow this thread with interest.
Cheers jq
Re: rename Drawing Name
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Actually, i want to rename drawing name using vb.net?
So,I renamed Drawing name in WDP file...
when i renamed drawing name in wdp file using vb.net code, it will changed drawing name correctly in Wdp file and folder also..
But i cant see that changes in AutoCAD Electrical Window. Once i restart AutoCAD Electrical, i can see that changes.
Re: rename Drawing Name
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
ACADE is not aware of changes done only using vb.net.
Using API functions or RENAME command, project update is invoked.
Project update is also invoked on ACADE restart and that is why changes are seen.
Re: rename Drawing Name
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
ok thanks for your update...
Can we close and open a Project in "Project Manager" using vba?


