ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Single Drawing Interface Modes @ AutoCAD2010

2 REPLIES 2
Reply
Message 1 of 3
eran
955 Views, 2 Replies

Single Drawing Interface Modes @ AutoCAD2010

Hello All!

I am now updating an old CAM plug in that we have to run in AutoCAD 2010.

I guess our addin(i'm not sure why) does not support "Multiple Drawing Interface" so when we load the application we set SDI mode to 1. (Also we have a timer that every once in a while makes sure that this value stays on 1).

After reading in "ObjectARX Developer Guide" I saw that "SDI System Variable" has two modes that i'm not sure I understand:

0 MDI is enabled //This is Simple. Single Drawing Interface Off

1 SDI mode set by user //This is Simple. Single Drawing Interface On

2 SDI mode implied by loaded non–MDI-aware applications //This i'm not sure I understand. What does "implied by loaded non–MDI-aware applications" means? Does AutoCAD do it automaticlly(and how does he determines?) or this has to be set by the plug-in?

3 SDI mode implied both by user and by loaded non–MDI-aware applications //Also not clear. When is this mode implied? Is it a combination of 1 & 2?

Also I don't understand one "SDI" restriction:

SDI can only be set to values of 2 or 3 by AutoCAD, as applications are loaded and unloaded. //I am not sure what this means. Does it mean that only AutoCAD itself can determine the mode of SDI? Does it mean that you are allowed in your plug-in to change SDI mode only to 2 or 3?

Any help will be greatly appreciated (-:

Regards,
David
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: eran

When an ARX app is loaded that does not say that it is MDI aware, then SDI
will be automatically set to 2 or 3. When in either of those modes, the
user cannot set it to 0.

wrote in message news:6384623@discussion.autodesk.com...
Hello All!

I am now updating an old CAM plug in that we have to run in AutoCAD 2010.

I guess our addin(i'm not sure why) does not support "Multiple Drawing
Interface" so when we load the application we set SDI mode to 1. (Also we
have a timer that every once in a while makes sure that this value stays on
1).

After reading in "ObjectARX Developer Guide" I saw that "SDI System
Variable" has two modes that i'm not sure I understand:

0 MDI is enabled //This is Simple. Single Drawing Interface Off

1 SDI mode set by user //This is Simple. Single Drawing Interface On

2 SDI mode implied by loaded non-MDI-aware applications //This i'm not sure
I understand. What does "implied by loaded non-MDI-aware applications"
means? Does AutoCAD do it automaticlly(and how does he determines?) or this
has to be set by the plug-in?

3 SDI mode implied both by user and by loaded non-MDI-aware applications
//Also not clear. When is this mode implied? Is it a combination of 1 & 2?

Also I don't understand one "SDI" restriction:

SDI can only be set to values of 2 or 3 by AutoCAD, as applications are
loaded and unloaded. //I am not sure what this means. Does it mean that only
AutoCAD itself can determine the mode of SDI? Does it mean that you are
allowed in your plug-in to change SDI mode only to 2 or 3?

Any help will be greatly appreciated (-:

Regards,
David
Message 3 of 3
Anonymous
in reply to: eran

if you do not call acrxRegisterAppMDIAware (ptr) at acrxEntryPoint when you receive message AcRx::kInitAppMsg AutoCAD will automatically work in SDI

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost