Example of how to manipulate a document's properties using Integration.


For assemblies containing a large number of similar parts (such as a mechanically welded structure), it is helpful to have the part number marked or laser-engraved on each part. This makes assembly easier after manufacturing.


 


In this example, since the parts are named as shown below, we want to extract a portion of the name (Part Number) in order to enter the number for laser cutting:


 

Select the part files to process, then create two actions

Action 1:

Create 2 conditions (OR) based on the property name— File Name.

  • The first condition will check whether this property exists.
  • The second condition, if it does not exist.
  • Create the operation that will add or modify a Windows property— File Name.

Action 2:

Create a condition to check whether the property exists - File name

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


 


The final step is to create the cut (extrusion by material removal) using a sketch note that retrieves the value of this property ($PRP:"Laser")— Laser.


 


This procedure is very useful when you are 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 (Integration) tool to update this property and, consequently, the laser cut.

You can find the sample files and the actions file: HERE

A few tips:

To ensure that the laser cuts are up to date with the correct part number, it’s important to run the integration tool once your project is complete. Then open the relevant assembly, force a refresh of the information (Ctrl+Q), and save your assembly (feel free to press Ctrl+Q twice (Rebuild) to ensure that the Laser property is updated correctly).

We recommend that you search the Internet for the term "STENCIL FONT," which refers to the font to use for laser cutting; you should easily find a font that meets your needs.