[SOLVED] Importing text strings from file

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
pauld
Registered Member
Posts: 2
Joined: Sat Oct 23, 2021 12:04 am

[SOLVED] Importing text strings from file

Post by pauld » Sat Oct 23, 2021 12:13 am

Hello,

I am using QCAD Professional 3.25.2.0 (3.25.2) on Windows 10.

When I'm creating production drawings, they use a standard format and there are a lot of text strings that need to be edited. These strings are in fixed locations (e.g. change note number, issue, title, etc) and are generated from a piece of software I've written in VB, along with some drawing data. I output the file to both text and CSV format, and I would like to know if there is a method for QCAD to use the file as the source to populate the strings (or fields) on a drawing.

I'm thinking that the drawing might have a field called something like "Drawing.Title", and QCAD would be pointed at the CSV file and find the value and insert the correct text into that string.

I'm probably not explaining it well. However, if you can make sense of the above, can anyone let me know if this type of think is even a possibility in QCAD, please?

Many thanks in advance.

Paul
Last edited by pauld on Sat Oct 23, 2021 12:28 pm, edited 2 times in total.

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Importing text strings from file

Post by CVH » Sat Oct 23, 2021 6:13 am

Hi,

I am afraid that there is nothing standard implemented ... Not standarized.
One could use Menu .. Edit .. Find/Replace but that is not automated.
A script can do that.

Seems similar as this project:
https://www.qcad.org/rsforum/viewtopic.php?f=30&t=8828

But the similarity ends in what to look for and how data is presented.

Regards,
CVH

pauld
Registered Member
Posts: 2
Joined: Sat Oct 23, 2021 12:04 am

SOLVED: Re: Importing text strings from file

Post by pauld » Sat Oct 23, 2021 12:27 pm

Hello CVH and many thanks for the reply.

Actually, this looks like it might be a route to doing exactly what I need. I think I can script this. Thank you for pointing me towards that other thread.

Very much appreciated!

Paul

Post Reply

Return to “QCAD 'How Do I' Questions”