Title Block edit in Drawing Dimensioning WB

Post here for help on using FreeCAD's graphical user interface (GUI).
BrianEV
Posts: 20
Joined: Thu Jan 19, 2017 8:09 pm

Title Block edit in Drawing Dimensioning WB

Postby BrianEV » Tue Mar 21, 2017 12:08 am

This seems pretty basic, so I am missing something.
I have made a drawing of a simple part in Drawing Dimensioning workbench, using the A4 iso template but I cannot change any default text (AUTHOR NAME, DRAWING TITLE, etc.). That seems a fundamental need in creating any drawing, so what am I not doing right?

I did try exporting the svg file and editing the text, which creates a viewable svg file with the correct text, but this seems laborious and doesn't get the information back in to FreeCAD.

All help appreciated, thanks, Brian :?:

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6668 (Git)
Build type: None
Branch: master
Hash: 7dbcbc0f762b1d21abc50e79112a0cf9be97bd47
Python version: 2.7.10
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
chrisb
Posts: 1661
Joined: Tue Mar 17, 2015 9:14 am

Re: Title Block edit in Drawing Dimensioning WB

Postby chrisb » Tue Mar 21, 2017 12:13 am

You can edit the templates below your FreeCAD directory in data/Mod/Drawing/Templates/. You find more in the documentation https://www.freecadweb.org/wiki/Drawing_templates which is always a good place to look first.
wandererfan
Posts: 886
Joined: Tue Nov 06, 2012 5:42 pm

Re: Title Block edit in Drawing Dimensioning WB

Postby wandererfan » Tue Mar 21, 2017 12:42 am

BrianEV wrote:I have made a drawing of a simple part in Drawing Dimensioning workbench, using the A4 iso template but I cannot change any default text (AUTHOR NAME, DRAWING TITLE, etc.).


The Page has a property called EditableTexts. Click on the ellipsis at the end of the property values. You should get a little dialogue box with 1 line per text field.
Attachments
TemplateFields.png
TemplateFields.png (37.95 KiB) Viewed 144 times
BrianEV
Posts: 20
Joined: Thu Jan 19, 2017 8:09 pm

Re: Title Block edit in Drawing Dimensioning WB

Postby BrianEV » Tue Mar 21, 2017 12:44 am

chrisb wrote:You can edit the templates below your FreeCAD directory in data/Mod/Drawing/Templates/. You find more in the documentation https://www.freecadweb.org/wiki/Drawing_templates which is always a good place to look first.

I'll try to follow that, but it is not the template I want to change. It is the information that is particular to each drawing or page.
BrianEV
Posts: 20
Joined: Thu Jan 19, 2017 8:09 pm

Re: Title Block edit in Drawing Dimensioning WB

Postby BrianEV » Tue Mar 21, 2017 12:58 am

wandererfan wrote:
BrianEV wrote:I have made a drawing of a simple part in Drawing Dimensioning workbench, using the A4 iso template but I cannot change any default text (AUTHOR NAME, DRAWING TITLE, etc.).


The Page has a property called EditableTexts. Click on the ellipsis at the end of the property values. You should get a little dialogue box with 1 line per text field.


Thank you. I have tried editing the Editable Texts. They show correctly in the list and survive through closing and reopening FreeCAD, but they do not show up in the displayed or printed drawing.
wandererfan
Posts: 886
Joined: Tue Nov 06, 2012 5:42 pm

Re: Title Block edit in Drawing Dimensioning WB

Postby wandererfan » Tue Mar 21, 2017 1:07 am

BrianEV wrote:They show correctly in the list and survive through closing and reopening FreeCAD, but they do not show up in the displayed or printed drawing.

Can you post the actual Template you're using? The EditableText fields have to be identified by a specific string ("freecad-editable", I think) in the Template SVG code. If that string isn't right, you'll get the symptoms you describe.
BrianEV
Posts: 20
Joined: Thu Jan 19, 2017 8:09 pm

Re: Title Block edit in Drawing Dimensioning WB

Postby BrianEV » Tue Mar 21, 2017 1:24 am

wandererfan wrote:
BrianEV wrote:They show correctly in the list and survive through closing and reopening FreeCAD, but they do not show up in the displayed or printed drawing.

Can you post the actual Template you're using? The EditableText fields have to be identified by a specific string ("freecad-editable", I think) in the Template SVG code. If that string isn't right, you'll get the symptoms you describe.

Not sure how to do that. I have the "standard" FreeCAD templates and used the pulldown menu to select A4 Landscape (ISO7200). Can I copy it to post from within FreeCAD?
BrianEV
Posts: 20
Joined: Thu Jan 19, 2017 8:09 pm

Re: Title Block edit in Drawing Dimensioning WB

Postby BrianEV » Tue Mar 21, 2017 1:35 am

BrianEV wrote:
wandererfan wrote:
BrianEV wrote:They show correctly in the list and survive through closing and reopening FreeCAD, but they do not show up in the displayed or printed drawing.

Can you post the actual Template you're using? The EditableText fields have to be identified by a specific string ("freecad-editable", I think) in the Template SVG code. If that string isn't right, you'll get the symptoms you describe.

Not sure how to do that. I have the "standard" FreeCAD templates and used the pulldown menu to select A4 Landscape (ISO7200). Can I copy it to post from within FreeCAD?

This is what I get from copying the file A4_Landscape_ISO7200.svg:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<svg
xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:freecad="http://www.freecadweb.org/wiki/index.php?title=Svg_Namespace"
width="297mm"
height="210mm"
viewBox="0 0 297 210">
<!-- Working space 10 10 287 200 -->
<!-- Title block 107 162 287 200 -->
<g>
<rect
id="drawing-border"
style="fill:none;stroke:#000000;stroke-width:0.35;stroke-linecap:miter;stroke-miterlimit:4"
width="277"
height="190"
x="10"
y="10" />
<!-- width-20, height-20 -->
<g
transform="translate(87,-65)">
<!-- A4 Portrait based for other formats width-210, height-297 -->
<!-- page rect translation
w h rw rh tx ty
A4-P 210 297 180 277 0 0
A3-L 420 297 390 277 210 0
A2-L 594 420 564 400 384 123
A1-L 841 594 811 574 631 297
A0-L 1189 841 1159 821 979 544
-->
<g
id="titleblock-structure"
style="fill:none;stroke:#000000;stroke-width:0.35;stroke-linecap:miter;stroke-miterlimit:4">
<rect width="180" height="38" x="20" y="227" />
<path d="m 20,238 h 180" />
<path d="m 80,227 v 11" />
<path d="m 140,227 v 38" />
<path d="m 160,227 v 11" />
<path d="m 180,227 v 11" />
<path d="m 140,254 h 60" />
<path d="m 180,254 v 11" />
</g>
<g
id="titleblock-text-non-editable"
style="font-size:3px;text-anchor:start;fill:#000000;font-family:osifont"
xml:space="preserve">
<text x="21" y="230.5">Created by:</text>
<text x="81" y="230.5">Title:</text>
<text x="21" y="241.5">Supplementary information:</text>
<text x="141" y="230.5">Size:</text>
<text x="161" y="230.5">Sheet:</text>
<text x="181" y="230.5">Scale:</text>
<text x="141" y="241.5">Part number:</text>
<text x="141" y="249.5">Drawing no.:</text>
<text x="141" y="257.5">Date:</text>
<text x="181" y="257.5">Revision:</text>
</g>
<g
id="titleblock-text-editable"
style="font-size:5px;text-anchor:middle;fill:#000000;font-family:osifont"
xml:space="preserve">
<text freecad:editable="AUTHOR NAME" x="50" y="236"><tspan>AUTHOR NAME</tspan></text>
<text freecad:editable="DRAWING TITLE" x="110" y="236"><tspan>DRAWING TITLE</tspan></text>
<text freecad:editable="SI-1" x="80" y="247"><tspan></tspan></text>
<text freecad:editable="FreeCAD DRAWING" x="80" y="254"><tspan>FreeCAD DRAWING</tspan></text>
<text freecad:editable="SI-3" x="80" y="261"><tspan></tspan></text>
<text freecad:editable="FC-SI" x="150" y="236"><tspan>A4</tspan></text>
<text freecad:editable="FC-SH" x="170" y="236"><tspan>X / Y</tspan></text>
<text freecad:editable="FC-SC" x="190" y="236"><tspan>SCALE</tspan></text>
<text freecad:editable="PN" x="180" y="244"><tspan>PN</tspan></text>
<text freecad:editable="DN" x="180" y="252"><tspan>DN</tspan></text>
<text freecad:editable="FC-DATE" x="160" y="263"><tspan>DD/MM/YYYY</tspan></text>
<text freecad:editable="FC-REV" x="190" y="263"><tspan>REV A</tspan></text>
</g>
<!-- Set display:none to hide FreeCAD Logo -->
<g
style="display:inline"
id="freecad-logo"
transform="translate(128.5,254)"
fill-rule="evenodd"
stroke="#000"
stroke-width="0.35"
fill="none">
<path d="m0.1524 0.15254v8.8549h1.9744v-3.4652h1.396v-1.3661h-1.396v-1.4745h3.4391v-2.5441l-5.4135-0.005z"/>
<path d="m7.7927 3.4504-0.50715-0.176-0.48387-1.2366-0.76115 0.04-0.34718 1.2787-0.4859 0.23269-1.2119-0.53015-0.51188 0.56882 0.65892 1.1485-0.18006 0.50567-1.2366 0.48387 0.044064 0.76263 1.2787 0.34718 0.23269 0.4859-0.53421 1.2104 0.56882 0.51188 1.1485-0.65891 0.50973 0.18155 0.4798 1.2351 0.7667-0.04258 0.34311-1.2802 0.4859-0.23269 1.2145 0.5357 0.51188-0.56882-0.65891-1.1485 0.17748-0.51122 1.2351-0.4798-0.03851-0.76521-1.2802-0.34311-0.23269-0.4859 0.53163-1.216-0.56881-0.51184zm-0.5715 1.2244 0.23576 0.13679 0.20426 0.18519 0.16353 0.22101 0.11763 0.24572 0.06916 0.26489 0.01146 0.27146-0.03921 0.27139-0.08948 0.25764-0.14234 0.23834-0.17964 0.20167-0.22101 0.16353-0.24572 0.11763-0.26489 0.06916-0.27295 0.01553-0.2719-0.04-0.2576-0.089-0.2383-0.143-0.2002-0.183-0.165-0.217-0.1177-0.246-0.0676-0.269-0.0156-0.273 0.039206-0.2714 0.089484-0.25764 0.14085-0.23427 0.18113-0.20574 0.22101-0.16352 0.24572-0.11763 0.26895-0.06768 0.27147-0.01146 0.27139 0.03921 0.25764 0.08948z"/>
</g>
</g>
</g>
<!-- DrawingContent -->
</svg>
User avatar
Willem
Posts: 461
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Title Block edit in Drawing Dimensioning WB

Postby Willem » Tue Mar 21, 2017 2:14 am

Hi, be sure you click on the three little dots I put a red circle around to enter the editable menu

Schermafdruk van 2017-03-21 03-09-47.png
Schermafdruk van 2017-03-21 03-09-47.png (219.82 KiB) Viewed 127 times
BrianEV
Posts: 20
Joined: Thu Jan 19, 2017 8:09 pm

Re: Title Block edit in Drawing Dimensioning WB

Postby BrianEV » Tue Mar 21, 2017 12:09 pm

Willem wrote:Hi, be sure you click on the three little dots I put a red circle around to enter the editable menu

Schermafdruk van 2017-03-21 03-09-47.png


Willem, I was able to do that, open the list, change the list content, and see the changes reflected in the Data tab. Unfortunately that did not cause the Title Block to be updated. Is there something else I should do to activate the changes?

Thank you, Brian