.Net for setting drawing angle to clockwise

.Net for setting drawing angle to clockwise

Anonymous
Not applicable
639 Views
1 Reply
Message 1 of 2

.Net for setting drawing angle to clockwise

Anonymous
Not applicable

Hi All,

 

Does anyone have any idea what the .Net code is for setting a drawings angle to clockwise? Under the DDUNITS command there is a tickbox to set the angle to be clockwise, but I cannot even find a variable to change for this.

 

I have this for setting the measurements to millimeters : db.Insunits = UnitsValue.Millimeters

but there does not appear to be a selection under that for making the drawing clockwise. 

 

Does anyone have an answer or could point me in the right direction to find how it is done please?

 

Thanks in advance,

 

B

0 Likes
640 Views
1 Reply
Reply (1)
Message 2 of 2

norman.yuan
Mentor
Mentor

You can either set system variable ANGDIR with:

 

Application.SetSystemVariable("ANGDIR", [value]);

 

or set Database properties:

 

Database.Angdir=[value]

 

for ANGDIR, its value is 0 for counterclockwise, 1 for clockwise;

 

Another related system variable is ANGBASE, or Database.Angbase property.

 

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes