Message 1 of 4
Not applicable
03-20-2023
11:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I found that I could not control the 'Transform' properties to modify the BoundingBox.
```csharp
var box = new BoundingBoxXYZ();
var builder = new StringBuilder();
builder.AppendLine("Before Rotation Matrix:");
builder.AppendLine($"The Min of Box: {box.Min}");
builder.AppendLine($"The Max of Box: {box.Max}");
builder.AppendLine($"The Transform of Box: {box.Transform}");
// It doesn't seem to work.
box.Transform = Transform.CreateTranslation(XYZ.BasisZ * 200);
builder.AppendLine("After Rotation Matrix:");
builder.AppendLine($"The Min of Box: {box.Min}");
builder.AppendLine($"The Max of Box: {box.Max}");
builder.AppendLine($"The Transform of Box: {box.Transform}");
```
Solved! Go to Solution.
Developer Advocacy and Support +