ARRAY Functions - disable options?

ARRAY Functions - disable options?

Kyudos
Advisor Advisor
898 Views
3 Replies
Message 1 of 4

ARRAY Functions - disable options?

Kyudos
Advisor
Advisor

The basic array-copy mode of the ARRAY functions is useful, but can I prevent my custom objects from being part of associative arrays?

 

Or failing that, what do I need to know about associative arrays such that they don't mess with my objects?

0 Likes
Accepted solutions (1)
899 Views
3 Replies
Replies (3)
Message 2 of 4

Virupaksha_aithal
Autodesk Support
Autodesk Support

Hi,

 

One possible approach is to manipulate the selection set like making sure that selection set do not contains your custom entity while performing array command.



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

Kyudos
Advisor
Advisor

But that would prevent all ARRAY copies for my objects - I just want to disable the Associative option.

 

It is actually a general issue - for commands with options - you can use commandWillStart or documentLockModeChanged to get at the start of the command, but is there anyway to tell which option a user picks?

0 Likes
Message 4 of 4

Virupaksha_aithal
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

For associated array, please track the system variable “ARRAYASSOCIATIVITY”. This system variable will provide the current setting in the AutoCAD regarding creation of assoc Array.

also, In general refer AcEdInputContextReactor. This reactor provided few options to track the kind of inputs user is providing in course of an command.   



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

0 Likes