Align the drawing head with DDM

Align the drawing head with DDM
Emil Rindell

Emil Rindell

Jonas Bryntesson

Jonas Bryntesson

Henrik Andersson

Henrik Andersson

2023-03-06

5 min read
Emil Rindell

Emil Rindell

Jonas Bryntesson

Jonas Bryntesson

Henrik Andersson

Henrik Andersson

2023-03-06

5 min read

In this blog post, we will describe how you can customize the drawing header in your 2D drawing template to make it work smoothly with DDM and display the desired information.

CAD Parameter Mapping

Via the CAD Parameter Mapping tool in DDM-admin you can control which attributes should be displayed by default on e.g. the part in the 3D scene. You can also control which direction the values should be written, from CAD to DDM or from DDM to CAD or in both directions. Keep in mind that the changes you have made in this tool do not take effect until you restart DDM. At the bottom of this post you will find lists of some of the standard attributes found in DDM.

Customize the drawing header in IRONCAD against DDM

If you are new to both IRONCAD and DDM , we recommend that you watch these two videos first to understand how the drawing templates in IRONCAD work:

Drawing Form Part 1/2 and Drawing Form Part 2/2

Customize the drawing header in IRONCAD

When the part/assembly is loaded into DDM , DDM places attributes in different "sources".

First, they can be found under the file properties of the 3D model...

DDM attribute IRONCAD

...or part/assembly in the history tree under part and/or assembly properties...

Custom data IRONCAD

and from the file properties of the drawing:

attribute 2d drawing

Linking of attributes

How do we now link our attributes to the 2D drawing? Open up the drawing template you want to change. We do this by going to Menu>File>Open

Menu File Open

Then navigate to the path of your templates(https://www.solidmakarna.se/hjalpcenter/where-do-I-find-my-2d-drawing-templates) select the template you want to open and then press ok.

For example, on this drawing template we want to retrieve an attribute from the 3D model (Part number). We first select the text tool under the Home tab and then drag out our text box by holding down the left mouse button:

To find out the attribute we want to use, we switch over to the 3D scene and right-click on our part and select Part Properties(as mentioned, it can also be a assembly and then it will be Assembly Properties). Under Name, we find, for example, the attribute PART_NO and this is what we want in our drawing template.

Custom Attributes IRONCAD

We now switch back to the 2D drawing and now you can either double-click on the text box to get into the properties or right-click on the text box and select Properties. In the text field, we now want our attribute, but in order for IRONCAD to understand from which source the attribute should come from, we need to add a line of code before our attribute. Since this comes from the 3D model's properties, we add the line $PRPPart and we also need to add"IC-".

Our code to be entered in the drawing header will then be: $PRPPart:"IC-PART_NO"

Then press OK

attribute part ironcad ddm

The principle of adding other values is almost identical to the above except for the source of the attribute we want to read from. For example, if we now want to read from the file properties of the drawing instead, we can first create a text field in the same way as above, but we change the source of the attribute by changing our code slightly. In this case, we now want the date created by the drawing, so we can now go into the properties of the drawing and look for this value, which is DRAW_INITIAL_CREATE_DATE_DATE.

Attribute drawing ironcad

Now to get the connection right we modify our code now by adding $PRPDrawing and IC-, our code will be: $PRPDrawing:"IC-DRAW_INITIAL_CREATE_DATE_DATE"

IC Draw attribute

The change list is also built in this way with attributes:

Revision history ironcad ddm

When we are done with our changes to the template, press Save to save your changes to the template.

Here you can download the drawing template that we use as an example in this post (saved in v2023 by IRONCAD):

Drawing template

DDM-Drawing template attributes

The list below shows all standard attributes that can be added to a drawing template. The template can be configured to retrieve attributes from the 3D scene or the drawing. To insert any of these attribute values into the drawing header, you can copy from the lists below:

Default attributes for the 3D scene

CAD attribute DDM- attribute
Part Number PARTNO
Issue PARTISSUE
Description 1 PARTDESC1
Description 2 PARTDESC2
First Issue Creation Date PARTINITIAL_CREATE_DATE_DATE
First Issue Creation User PARTINITIAL_CREATE_DESIGNER
Current Issue Creation Date PARTINITIAL_CREATE_DATE_DATE
Current Issue Creation User PARTDESIGNER
Material name PARTMATERIAL
Color PART_COLOUR
Unit of Length PARTU_OF_L
Unit of Weight PARTU_OF_W
Mass PARTMASS
Density PARTDENSITY
Surface Area PARTSURFACE_AREA
Surface Finish PARTSURFACE_FINISH
Volume PARTVOLUME

Standard attributes of the 2D drawing

CAD attribute DDM- attribute
Number DRAW_NO
Issue DRAW_ISSUE
Description 1 DRAW_DESC1
Description 2 DRAW_DESC2
First Issue Creation Date DRAW_INITIAL_CREATE_DATE_DATE
First Issue Creation User DRAW_INITIAL_CREATE_DESIGNER
Current Issue Creation Date DRAW_CREATE_DATE_DATE
Current Issue Creation User DRAW_DESIGNER
Keywords DRAW_KEYWORDS
Comments DRAW_COMMENT

Standard attributes for revision changes for the 3D scene

CAD attribute DDM- attribute
Current Issue number PART_CN_ISS_1
Previous Issue Number PART_CN_ISS_FROM_1
Up-Issue Date PART_CN_DATE_ONLY_1
Up-Issue Time PART_CN_TIME_ONLY_1
Up-Issue Date and Time PART_CN_DATE_1
Change Note Number PART_CN_NO_1
Change Made By PART_CN_BY_1
Change Note Short Reason PART_CN_RFC_1

Revision change attributes for the 2D drawing

CAD attribute DDM- attribute
Current Issue number DRAW_CN_ISS_1
Previous Issue Number DRAW_CN_ISS_FROM_1
Up-Issue Date DRAW_CN_DATE_ONLY_1
Up-Issue Time DRAW_CN_TIME_ONLY_1
Up-Issue Date and Time DRAW_CN_DATE_1
Change Note Number DRAW_CN_NO_1
Change Made By DRAW_CN_BY_1
Change Note Short Reason DRAW_CN_RFC_1

>