Message 1 of 6
Not applicable
06-02-2020
08:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have been trying to set a cropbox in a view. Here is snippet code
using (var trans = new Transaction(doc))
{
trans.Start("Set CropBox");
var boundingBoxElement = elem.get_BoundingBox(null);
newView.CropBoxActive = true;
newView.CropBox = boundingBoxElement;
trans.Commit();
}
In debug I can see how the cropBox changes but when transaction is committed the cropBox has suddenly changed.
Why is this happening? transaction is committed successfully
Solved! Go to Solution.