How to add Spin control in ACAD property pallet for custom entity?

How to add Spin control in ACAD property pallet for custom entity?

Anonymous
Not applicable
1,065 Views
5 Replies
Message 1 of 6

How to add Spin control in ACAD property pallet for custom entity?

Anonymous
Not applicable

Hi,

 

I need to add spin control in ACAD property pallet.

I tried with below link code information.

https://adndevblog.typepad.com/autocad/2012/12/how-to-create-a-polyline-like-vertex-edit-with-a-spin...

The Get element strings function does not invoke by system.

Please let me know to resolve this issue.

Can any one upload sample project? It may useful to understand it.

 

Thanks & Regards,

Jayaprakash

 

0 Likes
1,066 Views
5 Replies
Replies (5)
Message 2 of 6

Alexander.Rivilis
Mentor
Mentor

@Anonymous wrote:

Hi,

 

I need to add spin control in ACAD property pallet.

I tried with below link code information.

https://adndevblog.typepad.com/autocad/2012/12/how-to-create-a-polyline-like-vertex-edit-with-a-spin-control-in-opm.html

The Get element strings function does not invoke by system.

Please let me know to resolve this issue.

Can any one upload sample project? It may useful to understand it.

 

Thanks & Regards,

Jayaprakash

 


Are you talking about static or dynamic property? As far as I know it is not possible create spin control for dynamic property.

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

Anonymous
Not applicable

Its dynamic property .

Now I am getting call to GetElementString function after add base class IOPMPropertyExpander2 instead of IOPMPropertyExpander.

I override below function in my class.

1. GetElementString

2. GetElementGrouping

3. GetGroupCount

 

It couldn't add spin control @ index property row.

 

Please consider have 2 value as follows.

 

A    1 0   20   30 

B    25    50  75

 

I need to show above property into ACAD property panel as,

 

Index    -> Need to add spin control here 1...3

A

B

 

If Index is 1

A 10

B 25

 

 

 

 

0 Likes
Message 4 of 6

Anonymous
Not applicable

How to classify its Static or Dynamic?

 

But  my property class inherited from IDynamicProperty. 

 

What is it Static or Dynamic?

0 Likes
Message 5 of 6

Alexander.Rivilis
Mentor
Mentor

@Anonymous wrote:

How to classify its Static or Dynamic?

 

But  my property class inherited from IDynamicProperty. 

 

What is it Static or Dynamic?


If your property class inherited from IDynamicProperty - property is Dynamic.

 

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

Anonymous
Not applicable

Okay. Do you know how to set value for that spin control?

 

I inherited IAcPiPropertyDisplay into my custom property class.

 

Overrided below function:

GetCustomPropertyCtrl

GetPropertyIcon

GetPropTextColor

IsFullView

GetPropertyWeight

 

But values and spin controls are not added into property control.

 

0 Likes