I'm trying to write a method that takes a block in a drawing via it's block reference and stretches it out. So far my method looks like this:
public static void stretchBlockWithId(ObjectId passedIdOfObjectToUpdate, Distance newXScale, Distance newYScale, Distance newZScale)
{
using (Transaction transaction = database.TransactionManager.StartTransaction())
using (DocumentLock docLock = doc.LockDocument())
{
BlockReference objectToStretch = transaction.GetObject(passedIdOfObjectToUpdate, OpenMode.ForWrite) as BlockReference;
transaction.Commit();
}
}
I get the object to stretch by it's BlockReference but there does not appear to be anyway to transform the block so that it is wider and/or longer (I'm working on a 2D plane). What is the best way to go about doing this?