TRIM / EXTEND Selection Issue

TRIM / EXTEND Selection Issue

Kyudos
Advisor Advisor
441 Views
1 Reply
Message 1 of 2

TRIM / EXTEND Selection Issue

Kyudos
Advisor
Advisor

Until I have time to implement these functions properly for my custom entities, I'm trying to disable them.

 

I already have code to cancel the current command (for given commands) if my entities are selected. This only partially works for TRIM and EXTEND.

 

  • If my entities are in the PICKFIRST selection - my code cancels the command via documentLockModeChanged
  • If my entities are selected as the boundary entities (i.e. the trim-to or extend-to entities), my code cancels the command via endSSGet
  • If my entities are not selected and an ACAD entity is picked for the boundary, I don't get the chance to cancel.

It seems like I can prevent anything untoward by implementing subIntersectWith to return eNotImplemented, but I'm concerned that disabling those functions will have unforeseen effects.

 

Is subIntersectWith only used by TRIM and EXTEND, or will I be breaking something else by disabling it? It seems to break intersection snaps for instance...

0 Likes
442 Views
1 Reply
Reply (1)
Message 2 of 2

Alexander.Rivilis
Mentor
Mentor

As far as I remember, if your custom entity is not AcDbCurve-derived class and not implemented extend() and getSplitCurves() and some others methods - then EXTEND and TRIM (also BREAK and OFFSET) can not work with your entity.

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