Automate attributes using diesel and an external file

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all seeing this partains to dynamic blocks i thought i'll give it a go.
I’m looking for a way to automate some fields in Autocad for a titleblock,
I was thinking about finding an Autolisp program to do this, but recently I’ve found that you can also use diesel. However, I’m just a simple engineer. And I’m not sure if it’s even possible, what I want to do is the following:
Some fields in the title block can easily be automated since they are the same for every drawing, for instance projectnumber, projectname etc. What I thought would be a smart way is to have a *.txt file in the “root” folder of the drawings and just have some simple info in it
[projectnumber]
[projectname]
[Country]
And have a diesel expression pull the info from said file.
However I wouldn’t know where to start. I can modify an expression to fit my needs but starting one from scratch isn’t something that surpasses my knowledge
Anyone have something like this already done like this or similar to it
Folder structure is the same for every project