Custom Linetype with Block possible?

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
Konfi
Registered Member
Posts: 1
Joined: Tue Oct 12, 2021 6:36 pm

Custom Linetype with Block possible?

Post by Konfi » Tue Oct 12, 2021 9:19 pm

Hello,
I'm new to QCad and I got very curious about it. I do really enjoy the work you did on this project.

I'm currently busy with creating a custom linetype. To follow my current knowledge about custom linetypes, there is possibility to insert a Symbol via Unicode(*.shx) into line declaration in *.lin file.

Something like this:
*DRAINAGE2,Drainage reversed----<----<----<----
A,5.08,[RIGHT_ARROW,qcadshp.shx,S=2.54],5.08

It is a good implementation for standard workflow, but I aim for a question, if there is a possibility to call a block (.dxf, dwg), instead of a Unicode, into a line declaration.

Something like this:
*DRAINAGE2,Drainage reversed----<----<----<----
A,5.08,[RIGHT_ARROW,Block.dxf,S=2.54],5.08

The reason I would need this, is to follow the standards (regulations) in which I need to display linear infrastructures (e.g. pipelines, electric power transmission and so on). Those standards are precisely defined and the symbol library would be in this case too little.

I'm looking forward to your answer

Regards
Konfi

User avatar
andrew
Site Admin
Posts: 9059
Joined: Fri Mar 30, 2007 6:07 am

Re: Custom Linetype with Block possible?

Post by andrew » Tue Oct 12, 2021 9:44 pm

The symbols used in complex line types have to be glyphs in a QCAD font (e.g. qcadshp.shx in a linetype definition refers to the QCAD font file fonts/qcadshp.cxf).

You could edit the QCAD font file in a text editor or in QCAD itself to add the glyph you need:
https://qcad.org/en/tutorial-editing-cxf-fonts

This will likely require some fiddling to get right but should work.

Post Reply

Return to “QCAD 'How Do I' Questions”