Example of manipulating document properties with Integration.


On assemblies containing a large number of similar parts (e.g. a mechanically-welded structure), it is practical to have each part marked or laser-cut with the part number. This facilitates assembly after manufacture.


 


In this example, since the parts are named as below, we wish to extract a part (Part number) in order to enter the number for laser cutting:


 

Select the part files to be processed, then create 2 actions

Action 1:

Create 2 conditions (OR) on the property name - File name.

  • The first condition asks whether this property exists.
  • The second condition if it doesn't exist.
  • Create the operation that will add or modify a Windows property - File name.

Action 2:

Create 1 conditions to test if the property exists - File name

  • The condition will query whether this property exists.
  • Create the operation that will retrieve the value of this property, then create the property by retrieving the 4 characters from the sixth position -. Laser. In our example, the value retrieved will be the part number.


 


The final step is to create the cutout (material removal extrusion) with a sketch note that retrieves the value of this property ($PRP: "Laser") -. Laser.


 


This procedure is very useful when you're retrieving files that already include this laser cut, but the part number has changed.

If you rename the file (.sldprt) with a new part number, simply run the tool (Integration) to update this property and thus the laser cut.

You can find the example files and the actions file here: ICI

A few tips:

To ensure that laser cut-outs are updated with the correct part number, it is important to launch the integration tool when your project is complete. Then open the assembly concerned, force the information to be updated (Ctrl+Q) and save your assembly (don't hesitate to press Ctrl+Q (Rebuild) twice to make sure the Laser property is updated).

We suggest you do an Internet search on the term POLICE STENCIL, the font to use for laser cutting, and you should easily find a font to suit your needs.