Is it possible using Aspose.CAD to set the top view as in the screenshot?
изображение.jpg (155.2 KB)
@Aleks85,
Hi,
could you please test if this makes sense:
using (CadImage cadImage = (CadImage)Image.Load(fileName))
{
// search for active viewport and replace its values
for (int i = 0; i < cadImage.ViewPorts.Count; i++)
{
CadVportTableObject currentView = (CadVportTableObject)(cadImage.ViewPorts[i]);
if ((currentView.Name == null && cadImage.ViewPorts.Count == 1) ||
string.Equals(currentView.Name.ToLowerInvariant(), "*active"))
{
currentView.ViewDirection.X = 0;
currentView.ViewDirection.Y = 0;
currentView.ViewDirection.Z = 1;
// using here degrees or radians may depend on the format, e.g., DWG or DXF
currentView.ViewTwistAngle = 90;
break;
}
}
// export
}