The Copy Property Values tool copies property values from one property to another. The basic usage is to copy values from one property to another within one object.
The more advanced possibility is to copy data from a connected object.
A basic data processing operation is to normalize the data structure. This means that you make sure that the relevant data is always in the same place in the model. No matter where it comes from. For all models, in every project and from all design disciplines. Copy Property Values is the key tool for doing data structure normalization.
You might also need property value copying as an intermediate step when enriching data. You can copy data to another property and manipulate it freely, while the original data stays intact.
The possibility to copy data from other connected objects allows you to manage and flatten the data hierarchies, also a typical data processing task before using the data.
You can easily ‘Merge Copy‘ values from several properties with the same name into a new property. When you specify a name (not a key) as the ‘From Property’, the system scans all properties with that name and tries to copy values from all of them. When using Merge Copy, you need to set ‘Overwrite Non Empty Values’ to ‘No’, otherwise the actual values may be overwritten with an empty value. Merge Copy is available when the object class of the source is known: Same Object, Element Assembly, Main Element Assembly, Spatial Container, Model Object and Connected Object with a Required Object Class. With Any Container, with Connected Object without a Required Object Class and when copying from groups, only one property with that name is used.
If the ‘From Property’ and ‘To Property’ have the same name, for example, you are copying values from one property set to another and both property sets have the same property names, you must specify the target explicitly: either use a Key as the ‘To Property’ with Create if Missing OFF, or turn Create if Missing ON and use the property name together with the property set of the target as the PropertySet Name. In this scenario, the ‘From Property’ can be either a Name or a Key. When the Source is Same Object, the system will automatically filter out the ‘To Property’ from the list of possible ‘From Properties’, which means that the ‘To Property’ and ‘From Property’ will never be the same.
Settings
Target
Defines the objects to which the property values will be copied.
Copy from Property
Defines the name or identity key of the property from which you want to copy the values. This can be a property of the same object, a group or a connected object.
You can list several properties. The values are copied in the listed order, so this is also a way to merge the values of properties that have different names. With Overwrite Non-Empty Values set to No, the first value found is kept.
When the Source is Group, Child Group or Classification System, you can copy the value of a property of the group or the name of the group (for a classification system, the classification notation). To copy the name, enter Name or leave this setting empty. With the other sources this setting is mandatory.
Source
Specifies whether the values will be copied from the same object or from a connected object. If the values are copied from connected objects, you need to define the type of the connected object.
Same Object
Copy within the same object.
Container
Copy from any container of the object. This can be an assembly parent or spatial container.
Spatial Container
Copy from a spatial container, for example site, building, building storey, or space.
Group
Copy from the group the object is assigned to in a specified Group Category.
Child Group
Same as copying from group but with the possibility to define a Parent Group in addition to the Group Category
Classification System
Copy from a classification system, the object is assigned.
Model Object
Copy from the model the object is part of. There can be multiple models imported to Simplebim if you have merged models.
Connected Object
Copy from any connected object using a connection between the objects. The connections can be created, for example, with the Find Proximity Objects tool.
Type of Container
This option is available when you have chosen Container as the Source.
Any Container
The container of the object, regardless of object class.
Element Assembly
The element assembly containing the object.
Main Element Assembly
The main / top-most element assembly containing the object. This notation is useful if your model contains nested element assemblies, i.e., assemblies that contain other assemblies.
Type of Spatial Container
This option is available when you have chosen Spatial Container as Source.
There are many kind of spatial container in IFC. You need to decide which one you want to use: Project, Site, Facility, Bridge, Building, Marine Facility, Railway, Road, Bridge Part, Building Storey, Facility Part, Marine Part, Railway Part, Road Part, Space
Group Category
This option is available when you have chosen Group or Child Group as Source.
Copy only from groups that belong to this group category. You can use the name or the key of the category. For example, IFC Group copies from a group from the IFC Group category.
Note that if the object is assigned to many groups within the Group Category, then the value of only one group is copied. If the groups are nested, the deepest group is used.
Parent Group Name
This option is available when you have chosen Child Group as Source.
Copy only from the child groups of the parent group with this name. Use this when the object belongs to child groups of several parent groups in the Group Category.
Classification System Name
This option is available when you have chosen Classification System as Source.
The classification notation from the specified classification system. For example, 'Uniformat' copies from the classification notation assigned to the object from the Uniformat classification system. If you leave this empty, the classification notation is copied from any classification system the object is assigned to.
Connection Name
This option is available when you have chosen Connected Object as Source.
The object can be connected to other objects via many different connection properties. You need to define, which connection property you want to use. For example My Proximity Connection copies property values from the object connected to the Target via My Proximity Connection connection.
Required Object Class
This option is available when you have chosen Connected Object as Source.
The object can be connected to many other objects. If this is the case, then you need to chose which of those objects you want to use for copying. If Required Object Class is defined, then the tool follows the connection until an object from the specified object class is found. For example, 'Space' copies from the space containing the object.
Copy to Property
Defines the name or identity key of the property into which you want to copy the values. When Create if Missing is ON, use the name of the property. An identity key is not recognized in that case, and the tool would create a new property with the key as its name.
Create if Missing
Should the 'Copy to Property' be created to the model if it is missing? Creating the property while copying, will save you the trouble of creating it separately with the Add Property tool. Then again sometimes you will have the property already in the model, so you don't have to create it.
When this is ON, the tool looks for the property by its name in the property set defined by PropertySet Name. A property with the same name in another property set is not used: the property is created in the defined property set instead.
Property Type
This option is available when you have turned Create if Missing ON.
Defines which kind of property you want to create. By default you want to keep the from and to property types the same. However it is possible to copy to a different type of property. This requires that the conversion can be done. For example, all the property types can be converted and copied to a text property.
When the Source is Group, Child Group or Classification System, the values are not converted. A value is copied only if the Copy to Property has the same type, so the name of a group can be copied only to a text property.
Different available property types are the following: Date, Date Time, Number, Text, Time of Day, Whole Number, Yes/No, Angle Measure, Area Measure, Count Measure, Electric Current Measure, Force Measure, Length Measure, Linear Velocity Measure, Mass Measure, Monetary Measure, Other Measure, Power Measure, Pressure Measure, Sound Pressure Measure, Temperature Measure, Thermal Transmittance Measure, Time Measure, Volume Measure, Volumetric Flowrate Measure.
PropertySet Name
This option is available when you have turned Create if Missing ON.
The name of the property set where you want to create the missing property. If the property set already exists in the model, then the property is created to the existing one. If the property set is not yet in the model, it is created.
Copy Empty Values
Should empty values be copied? Use No if you want to merge the values of the two properties.
Overwrite Non-Empty Values
If the ‘To Property’ already has a value, should that value be overwritten by the value of the ‘From Property’? Use No if you merge the values of the two properties and want to give priority to the values in the To Property.
Regular Expression
You can optionally use regular expressions for modifying the property value that is being copied. Only the part of the original value that is selected by the specified regular expression will be copied.
The regular expression is case-sensitive, and only the first match in the value is used. If the regular expression has groups, the text of the first group that has a value is copied instead of the whole match.
Type the regular expression into the box, or click the .* button at the right end of the box to open the regular expression editor. The box shows the regular expression with colors, and a regular expression that is not valid is marked in the box.
In the regular expression editor, you can test the regular expression before you run the tool. Enter test values in the box below the regular expression, one value per line. The part of each value that the tool would copy is highlighted. You can also drag property values or a text property from the Properties palette to the box to get its values as test values. Below the test values, the editor tells whether the regular expression is valid. The test values are used only in the editor and are not saved with the settings. Click Apply Changes to keep the regular expression, or Discard Changes to keep the earlier one.
Release Notes
Simplebim 12.0 SR2
- Regular Expression now has a regular expression editor, where you can test the regular expression on example values before you run the tool. The setting shows the regular expression with colors and marks a regular expression that is not valid.
- Running the tool no longer leaves only the last property in Copy from Property. Earlier, a list of several properties could be reduced to its last property after a run, so a step that ran again copied from that property only.
Simplebim 12.0 SR1
- Group Category Name was renamed to Group Category. It now finds the category by name or key for all groups in the model, also for groups created from the Objects palette or by other tools.
- Copy from Property can now be left empty also when the Source is Child Group or Classification System. The name of the group or the classification notation is then copied.
- Classification System Name now limits the copying to the named classification system. Leaving it empty copies from any classification system.
- When Create if Missing is ON, Copy to Property is now always treated as a property name in the property set defined by PropertySet Name. An identity key is no longer recognized and would be used as the name of a new property.
Related to
Comments
0 comments
Please sign in to leave a comment.