§Transformation
§GeometryElement.GetTransformed() -
Return a copy of the geometry transformed
§Instance.GetTransform() – return the
transform of the instance
§Instance.GetTotalTransform() – return
the total transform (e.g., true north transform
of an imported instance).
§Serialization/deserialization of Reference
§Reference.ConvertToStableRepresentation()
- convert a reference to a stable string
representation
§Reference.ParseFromStableRepresentation()
– restore the serialized reference. Could be in
the same or different Revit session
§
§
§
§
public string SerializeReference(Document doc, Reference reference)
{
String ids = String.Empty;
ids =
reference.ConvertToStableRepresentation(doc);
TaskDialog.Show("SerializeReference",
"Representation:\n" + ids);
return ids;
}