A Couple Of Questions

1
Engineer
5/20/2019 3:40 PM

1. How to achieve functionality, when viewport will show polyline or text with black color, although model drawing actually has white color of these elements?

2. How to change font size of DxfMText?

3. How to change custom scale of viewport?

4. How to show dimensions only in viewport?
I’m trying to use next code sample and it does not help.

Wout
5/22/2019 10:01 PM

Hi,

1. White/black does not exist in AutoCAD, as it depends on the background color. ACI color 7 is the default color (white or black). This is represented by EntityColor.Default.

2. See DxfMText.Height.

3. The viewport scale as in the AutoCAD user interface represents DxfViewport.Size.Y / DxfViewport.ViewHeight. Other than that I refer you to the DxfViewport documentation for more information.

4. I'd probably add dimensions in the paper space layout on top of the viewport.

- Wout

1