WblockCloneObjects() returns eNotAllowedForThisProxy

WblockCloneObjects() returns eNotAllowedForThisProxy

chunyuran
Enthusiast Enthusiast
1,435 Views
1 Reply
Message 1 of 2

WblockCloneObjects() returns eNotAllowedForThisProxy

chunyuran
Enthusiast
Enthusiast

WblockCloneObjects()  returns eNotAllowedForThisProxy.

Anybody know how to handle this? Thanks advance.

0 Likes
Accepted solutions (1)
1,436 Views
1 Reply
Reply (1)
Message 2 of 2

Alexander.Rivilis
Mentor
Mentor
Accepted solution

@chunyuran wrote:

WblockCloneObjects()  returns eNotAllowedForThisProxy.

Anybody know how to handle this? Thanks advance.


If the drawing contains proxy-object/entity that was created without the flag kCloningAllowed, when you try to call the method for them WblockCloneObjects () is an error code eNotAllowedForThisProxy returned. IMHO there are two alternative solutions:

1. Set Object Enabler for this Custom Object / Entity

2. Remove the proxy objects and explode the proxy entities 

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | 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