MatchObjectAttributes¶
-
MatchObjectAttributes(target_ids, source_id=None)¶
Matches, or copies the attributes of a source object to a target object. Retains the User Strings data. Objects on Reference layer will have their layer name truncated and added to document. Also work with objects inside a block definition.
| returns: | number of objects modified |
|---|
Example
import rhinoscriptsyntax as rs
import armacode
obj = rs.GetObjects("Select Objects to match attributes")
sourceObj = rs.GetObject("Source object to match attributes to")
if obj and sourceObj:
armacode.MatchObjectAttributes(obj, sourceObj)