Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Disabling DROPGEOM

Kyudos
Collaborator

Disabling DROPGEOM

Kyudos
Collaborator
Collaborator

I've found that dealing with OLEDRAGDROP / DROPGEOM as well as grip editing makes the handling for my custom objects unnecessarily complicated.

 

Hence I'm posting my solution to disabling this function for my objects, I don't know if its the best way, but it works.

 

In your AcApDocManagerReactor::documentLockModeChanged handler you can use something like this:

 

if (_tcsicmp(pGlobalCmdName, _T("OLEDRAGDROP")) == 0 || 
_tcsicmp(pGlobalCmdName, _T("DROPGEOM")) == 0 ||
_tcsicmp(pGlobalCmdName, _T("DRAGENTER")) == 0)
{
    // Prevent objects from being dragged
    for (int i = 0; i < aLastSelectionArray.length(); i++)
    {
        AcDbObjectId objId = aLastSelectionArray[i];
	MyObject* pObj = IsMyObject(objId);

        if (pObj != NULL)
        {
            this->veto();
            break;
        }
    }
}
Reply
Accepted solutions (3)
18,603 Views
62 Replies
Replies (62)

chungenlin45254
Observer
Observer

Hi Kyudos! Is there any posibility to have a 2012 compatible version? πŸ™

0 Likes

Kyudos
Collaborator
Collaborator

I can't build it without the ObjectARX 2012 SDK - and I can't find a working download link. It doesn't appear to be on AutoDesk's servers anymore.

 

If you can find a link I can make it.

0 Likes

Alexander.Rivilis
Mentor
Mentor

https://download.autodesk.com/esd/objectarx/2012/ObjectARX_2012_Win_64_and_32Bit.exe

Π’Ρ–Π΄ΠΏΠΎΠ²Ρ–Π΄ΡŒ корисна? ΠšΠ»Ρ–ΠΊΠ½Ρ–Ρ‚ΡŒ Π½Π° "Π’ΠŸΠžΠ”ΠžΠ‘ΠΠ™ΠšΠ£" Ρ†Ρ–ΠΌ повідомлСнням! | Do you find the posts helpful? "LIKE" these posts!
НаходитС сообщСния ΠΏΠΎΠ»Π΅Π·Π½Ρ‹ΠΌΠΈ? ΠŸΠΎΡΡ‚Π°Π²ΡŒΡ‚Π΅ "ΠΠ ΠΠ’Π˜Π’Π‘Π―" этим сообщСниям!
На вашС запитання Π²Ρ–Π΄ΠΏΠΎΠ²Ρ–Π»ΠΈ? ΠΠ°Ρ‚ΠΈΡΠ½Ρ–Ρ‚ΡŒ ΠΊΠ½ΠΎΠΏΠΊΡƒ "ΠŸΠ Π˜Π™ΠΠ―Π’Π˜ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос ΡƒΡΠΏΠ΅ΡˆΠ½ΠΎ ΠΎΡ‚Π²Π΅Ρ‚ΠΈΠ»ΠΈ? НаТмитС ΠΊΠ½ΠΎΠΏΠΊΡƒ "Π£Π’Π’Π•Π Π”Π˜Π’Π¬ Π Π•Π¨Π•ΠΠ˜Π•"


Alexander Rivilis / АлСксандр Ривилис / ΠžΠ»Π΅ΠΊΡΠ°Π½Π΄Ρ€ Рівіліс
Programmer & Teacher & Helper / ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΈΡΡ‚ - Π£Ρ‡ΠΈΡ‚Π΅Π»ΡŒ - ΠŸΠΎΠΌΠΎΡ‰Π½ΠΈΠΊ / ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΡ–ΡΡ‚ - Π²Ρ‡ΠΈΡ‚Π΅Π»ΡŒ - ΠΏΠΎΠΌΡ–Ρ‡Π½ΠΈΠΊ
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes

Kyudos
Collaborator
Collaborator

Thanks Alexander - I tried several of your other links (in other posts) and none of them seemed to be active!

0 Likes

Alexander.Rivilis
Mentor
Mentor

@Kyudos 

Some years ago link begin with http: and now begin with https: 

Π’Ρ–Π΄ΠΏΠΎΠ²Ρ–Π΄ΡŒ корисна? ΠšΠ»Ρ–ΠΊΠ½Ρ–Ρ‚ΡŒ Π½Π° "Π’ΠŸΠžΠ”ΠžΠ‘ΠΠ™ΠšΠ£" Ρ†Ρ–ΠΌ повідомлСнням! | Do you find the posts helpful? "LIKE" these posts!
НаходитС сообщСния ΠΏΠΎΠ»Π΅Π·Π½Ρ‹ΠΌΠΈ? ΠŸΠΎΡΡ‚Π°Π²ΡŒΡ‚Π΅ "ΠΠ ΠΠ’Π˜Π’Π‘Π―" этим сообщСниям!
На вашС запитання Π²Ρ–Π΄ΠΏΠΎΠ²Ρ–Π»ΠΈ? ΠΠ°Ρ‚ΠΈΡΠ½Ρ–Ρ‚ΡŒ ΠΊΠ½ΠΎΠΏΠΊΡƒ "ΠŸΠ Π˜Π™ΠΠ―Π’Π˜ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос ΡƒΡΠΏΠ΅ΡˆΠ½ΠΎ ΠΎΡ‚Π²Π΅Ρ‚ΠΈΠ»ΠΈ? НаТмитС ΠΊΠ½ΠΎΠΏΠΊΡƒ "Π£Π’Π’Π•Π Π”Π˜Π’Π¬ Π Π•Π¨Π•ΠΠ˜Π•"


Alexander Rivilis / АлСксандр Ривилис / ΠžΠ»Π΅ΠΊΡΠ°Π½Π΄Ρ€ Рівіліс
Programmer & Teacher & Helper / ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΈΡΡ‚ - Π£Ρ‡ΠΈΡ‚Π΅Π»ΡŒ - ΠŸΠΎΠΌΠΎΡ‰Π½ΠΈΠΊ / ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΡ–ΡΡ‚ - Π²Ρ‡ΠΈΡ‚Π΅Π»ΡŒ - ΠΏΠΎΠΌΡ–Ρ‡Π½ΠΈΠΊ
Facebook | Twitter | LinkedIn
Expert Elite Member

0 Likes

Kyudos
Collaborator
Collaborator

@chungenlin45254 Untested, but should work.

chungenlin45254
Observer
Observer

sorry for replying so late!

 

I've tried to install it but it says the following,

"disabledragdrop.arx is incompatible with this version of AutoCAD.
AcRxDynamicLinker failed to load "

 

I've found some other versions of ObjectARX SDK provided by Alexander in the link below.

Some of them are also compatible with autocad 2012. I'm not sure if this will help.

 

Thank you so much.

0 Likes

Kyudos
Collaborator
Collaborator
I don't have a 2012 version of AutoCAD, so I can't really test this I'm afraid. Did you try both the debug and release versions?
0 Likes

chungenlin45254
Observer
Observer
I'm afraid so.
I've tried both the debug and release versions and they all failed to load...
0 Likes

CDM2424
Explorer
Explorer
Thanks for doing this! However, it doesn't appear to work. I had used it on 2020, and it worked flawlessly. Now with the 2023 version of CAD and the 2023 version of your arx, it doesn't seem to work at all. No errors in the command line either.
0 Likes

Kyudos
Collaborator
Collaborator

Hmmm...it works fine here (in Version T.181.0.0 AutoCAD 2023.1.4).

 

There's not much that can go wrong with it really, so I'm not sure what to suggest.

 

What do you see on the command line when you APPLOAD it? It should look like this:

 

Command: APPLOAD
Available commands:
DISABLEDD : disable drag and drop
ENABLEDD  : enable drag and drop
ENABLEDO : enable drag override
DISABLEDO  : disable drag override
DisableDragDrop.arx successfully loaded.
0 Likes

CDM2424
Explorer
Explorer

Appreciate the fast response.

I see the same thing.

 

Command: APPLOAD
Available commands:
DISABLEDD : disable drag and drop
ENABLEDD : enable drag and drop
ENABLEDO : enable drag override
DISABLEDO : disable drag override
DisableDragDrop2023.arx successfully loaded.

 

My CAD version.

 

CDM2424_0-1710887076903.png

 

0 Likes

Kyudos
Collaborator
Collaborator

Does it make a difference if you load it into the vanilla AutoCAD that underlies your Civil 3D? (I don't have C3D on my machine ATM so can't test it)

0 Likes

CDM2424
Explorer
Explorer
It doesn't work in vanilla either.
0 Likes

Kyudos
Collaborator
Collaborator

Neither of the functions?

0 Likes

CDM2424
Explorer
Explorer
Ok.... So.... I'm dumb. I forgot that I had previously added the command to "acaddoc.lsp"... I did this a while ago and this made me thing the commands were already enabled on startup straight from the arx.
I added it back as a startup command, and all is well. Thank you so much for your quick replies and for helping me through my own stupidity haha.
0 Likes

Kyudos
Collaborator
Collaborator

Haha! No problem. I find I often use the "ask on the forum" technique to solve problems. That is, you bash your head against something for hours/days, then ask on a forum about it, and subsequently and immediately solve it and have to answer your own forum question πŸ˜‰ 

CDM2424
Explorer
Explorer
Haha, so true. I knew it had to be a simple solution. Sometimes I just get in my own way. Thanks again for all your help!!
0 Likes

jan.bartlomiejczyk
Community Visitor
Community Visitor

Hi, i know that this forum is for AutoCAD users, but in my new work i've got GstarCAD on my computer and very anoying problems with DROPGEOM . Gstar is not working with ARX files but GRX instead. I saw this video https://www.youtube.com/watch?v=HFAHoAOd1YY about changing ARX to GRX and it looks easy to do but not for an Architect who doesnt know anything about programing :D. Could you please help me and post the GRX file by chance?

0 Likes

jan.bartlomiejczyk
Community Visitor
Community Visitor

Hi, i know that this forum is for AutoCAD users, and i used Autocad for years, but now in my new work i've got GstarCAD and anoying problems with DROPGEOM. Gstar is not working with ARX but the GRX instead. I saw this video https://www.youtube.com/watch?v=HFAHoAOd1YY about how to change ARX to GRX and it looks easy but not for an Architect who doesnt know anything about programing :D. Could you please help me and post the GRX file by chance? 

0 Likes