Clone Property Set Properties

Jiri Hietanen
Jiri Hietanen
  • Updated

The Clone Property Set Properties tool adds property set and quantity set properties of one object class to other object classes. The added properties are the same properties as in the original object class: they have the same key, belong to the same property set or quantity set and have the same property type. A measure value property also gets the same unit. Optionally, the tool also copies the property values from connected objects.

In IFC, properties are defined for object classes. When you have properties in one object class, for example your own properties created with the Add Property tool, this tool gives the same properties to other object classes in one step. With a connection, the tool can also give each object the values of the object it is connected to, for example the values of the space that a piece of furniture is connected to.

There are also other ways to add properties:

  • To add a new property with a name and a property type that you define, use the Add Property tool.
  • To copy the values of one property to another property, also from connected objects, use the Copy Property Values tool. It can also create the property it copies to.
  • To give a property another name, use the Rename Property tool.

Which properties can be cloned

Only property set and quantity set properties can be cloned. These are the properties that come from the property sets and quantity sets of an IFC model, and the properties that you create with the Add Property tool. If a property in the Properties setting is of another kind, for example a connection, the tool reports a warning and does not clone it. In the Properties palette, the option Show Only Property Sets shows only the property set and quantity set properties.

Where the properties are added

The properties are added to the object classes of the objects in Clone To, except the Clone From class. The property is added to the object class, so all objects of the class have it, also the objects that are not in Clone To. Without a Connection, the added properties have no values.

The cloned properties are included, even if they are excluded in the Clone From class. You can read more about this in Include/Exclude Properties.

Properties that already exist

An object class already has the property if it has a property with the same key. The tool then keeps the existing property and its values. If the existing property is excluded, the tool includes it.

If the existing property has another property type, for example Number instead of Text, Area Measure instead of Length Measure, or a list of values instead of a single value, the property is not cloned to that object class, and the objects of the class do not get values for it. The tool reports a warning with the names of these object classes. The other object classes get the property.

Cloning values

When you define a Connection, the tool also copies the values of the cloned properties. For each object in Clone To, the tool follows the connection one step to the connected object. The value is copied only when exactly one object is connected and that object belongs to the Clone From class. Otherwise, the value of the object stays as it is.

A copied value replaces the existing value. If the connected object has no value, the existing value is cleared.

Only the objects in Clone To get values. The other objects of the same object classes keep their values, or have no values if the property is new.

After the run

The tool reports a warning for each property that it could not clone and for each object class whose objects did not get values. The warning tells the reason. For objects that did not get values, it tells how many of them have no connected object, how many have several connected objects and how many are connected to an object that is not of the Clone From class.

Settings

Clone To

Defines the objects whose object classes get the properties. When you define a Connection, these objects also get the values. You can select, for example, the objects of an object class or a group. The default value is all objects, so check this setting before you run the tool: with the default value, the properties are added to every object class that has included objects.

Excluded objects are ignored. Objects that are Not Decided Yet are used only if no objects have been included. You can read more about these in Include/Exclude Objects.

Objects of the Clone From class are ignored, so the Clone From class does not change.

If the selection does not find any objects, the tool reports a warning and does not change the model. If it finds only excluded objects or objects of the Clone From class, the tool does not change the model.

Clone From

Defines the object class whose properties are cloned. This setting is mandatory. The default value is empty.

The setting takes exactly one object class. Pick it from the drop-down, which shows Select Object Class until you have picked one. You can also type the name of an object class.

If the setting is empty or the object class is not found in the model, the tool reports an error and does not change the model. The same happens if the setting holds something else than a single object class. The setting then shows the value as text.

Properties

Defines the properties that are cloned. This setting is mandatory: if it is empty, the tool reports an error and does not change the model.

You can list several property names or keys. Type a single value directly into the box. To enter several values, click the list button at the right end of the box. The List Editor opens, where you enter one value per line. With two or more values the box shows the number of values, for example, '3 Items', and the values can then be changed only in the List Editor. The × button clears the box.

Each value is the name or the key of a property of the Clone From class. Names are not case-sensitive, and wildcards are not supported. Spaces before and after the values are ignored, empty values are skipped, and a property that is listed twice, for example by name and by key, is cloned once. The tool also finds properties that are excluded in the Clone From class.

If the Clone From class does not have a property with the name or key, or if it has several properties with the name, for example in different property sets, the tool reports a warning and clones the other properties. Use the key of the property in this case. You can copy the key in the Properties palette with Copy Special > Copy Key (Ctrl+K). If none of the properties can be cloned, the tool does not change the model.

While the box holds a single value, you can also drag a property from the Properties palette and drop it onto the box.

Connection (optional)

Defines the connection through which the values are copied. This is an optional setting. If you leave it empty, the tool only adds the properties and does not copy values. The default value is empty.

Use the name or the key of a connection property of the objects in Clone To, which connects them to objects of the Clone From class. Connections can be created, for example, with the Find Proximity Objects tool. The name is not case-sensitive.

The tool looks for the connection in each object class of Clone To separately. If an object class does not have it, has several properties with this name, or the property is not a connection, the tool reports a warning. The object class still gets the properties, but its objects do not get values.

Release Notes

This tool was added in Simplebim 12.0 SR2

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.