Attributes written into file name when creating a WBLOCK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I would like to have attributes automatically written into the file name when creating a WBLOCK.
Currently the plan is saved with placeholders:
(setq path "...\\000000_XX_0000_Cityname_Planname_Index-.dwg")
I want the following things to be inserted automatically. The attributes are all stored in a single dynamic block.
- Current date --> YYMMDD
- 2-digit country code --> attribute
- 4-digit number --> attribute
- city name --> attribute
- plan name --> attribute
- The index must be entered manually.
This is how the file name should be written.
(setq path "...\YYMMDD_attribute_attribute_attribute_attribute_Index-.dwg")
Greetings and thanks in advance for your help.