next up previous contents index
Next: Computational Geometry and Layer Up: Geometry Editing Functions 2 Previous: Property Management by Handles   Contents   Index

Other Property Management Functions

(int) AddProperty(number, string)
This function adds the property number and string to all selected objects. In physical mode, the number argument is an integer, within the acceptable range.

Physical object 0 - 6999, 7198 (Template Params), 7200 or larger.

Adding a Template Params property will automatically remove the old property, if any. Note that pseudo-properties can be applied to physical objects.

In electrical mode, it is possible to set the name, model, value, param, other, and nophys properties on electrical devices, or the same properties except for model and value on electrical subcells. In this case, the number argument is a string, and should be a prefix of ``name'', ``model'', ``value'', ``param'', ``other'', or ``nophys''. The single character string ``n'' implies name, and (additionally) ``y'' implies nophys. If the string is not recognized, other is assumed. The mode must be electrical.

The number of properties added plus the number of pseudo-properties applied is returned.

(int) AddCellProperty(number, string)
This function adds a property to the current cell. In physical mode, the number argument is an integer, within the acceptable range.

Physical cell 0 - 6999, 7105 (Flags), 7198 (Template Params), 7199 (Template Script), 7300 or larger.

Adding a Flags, Template Params or Template Script property will automatically remove the old property, if any.

In electrical mode, it is possible to set the param and other properties in the cell. In this case, the number argument is a string, and should be a prefix of ``param'' or ``other''. If the string is not recognized, other is assumed.

The function returns 1 if the operation was successful, 0 otherwise.

(int) RemoveProperty(number, string)
This function will remove properties from selected objects. In physical mode, the number argument is an integer, within the acceptable range. The string argument can be passed 0, in which case this function will remove all properties with the number given from all selected objects. If a string is given, then only those properties for which string is a prefix of the value string will be removed.

Physical object 0 - 6999, 7300 or larger.

Note that template properties can not be removed.

In electrical mode, the name, model, value, param, other, and nophys properties can be removed from a device, and the same properties except for model and value can be removed from an electrical subcell. In this case, the number argument is a string, which should be a prefix to ``name'', ``model'', ``value'', ``param'', ``other'', or ``nophys''. The single character string ``n'' implies name, and (additionally) ``y'' implies nophys. If the string is not recognized, other is assumed. Except for other, the string argument is ignored. For other properties, the string is used as above to identify the property to delete.

The number of properties removed is returned.

(int) RemoveCellProperty(number, string)
This function will remove properties from the current cell. In physical mode, the number argument is an integer, within the acceptable range. The string argument can be passed 0, in which case this function will remove all properties with the given integer number from the physical part of the current cell. If a string is given, only those properties for which the string is a prefix to the value will be deleted.

Physical cell 0 - 6999, 7105 (Flags), 7300 or larger.

Note that template properties can not be removed.

In electrical mode, the param and other properties can be removed from the cell. In this case, the number argument is a string, which should be a prefix to ``param'' or ``other''. If the string is not recognized, other is assumed. Except for other, the string argument is ignored. For other properties, the string is used as above to identify the property to delete.

The number of properties removed is returned.


next up previous contents index
Next: Computational Geometry and Layer Up: Geometry Editing Functions 2 Previous: Property Management by Handles   Contents   Index
Stephen R. Whiteley 2012-04-01