Modify Refection Environment for Drawing Document

Modify Refection Environment for Drawing Document

cdellea
Enthusiast Enthusiast
281 Views
2 Replies
Message 1 of 3

Modify Refection Environment for Drawing Document

cdellea
Enthusiast
Enthusiast

Hi,

 

I need to modify by code the Reflection Environment setting of some Drawing Documents. The option is visible in "Document Settings" of a Drawing Document :

 

cdellea_0-1673972537052.png

 

I need to set back this value to "Use Applications Settings". But I cannot find where this option is accessible with API in a Drawing Document. This is not documented in API help file and it is not exposed in the "settings" objects accessible in a Drawing Document.

 

Can anybody help ?

 

Thank you very much in advance,

 

Colin

 

0 Likes
282 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

Hi @cdellea.  I do not see that specific setting available within the API, but most of the rest of those setting you see in that dialog can be accessed through the API under DrawingDocument.DrawingSettings, using the following code path:

Dim oDDoc As DrawingDocument = ThisDoc.Document
oDDoc.DrawingSettings.

...just remove that last dot (.), then type the dot back in, to see the Intellisense system pop-up the suggestions for what is available within the DrawingSettings (or see the link provided above).

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

cdellea
Enthusiast
Enthusiast

Hi @WCrihfield,

 

Thank you for your answer. Unfortunately, I know that settings. I should have specified in my question that I was asking because I do not see that parameter in any "settings" property of a DrawingDocument....

 

I wish you a nice day.

 

Colin

0 Likes