
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I create two custom entities. And add two new dynamic property for them.But unable to switch property in property inspector when I select them.
When I select one kind of custom entity and other basic enitty from cad, such as AcDbLine. Attribute to switch to normal in property inspector.
Such as,
OPM_DYNPROP_OBJECT_ENTRY_AUTO(CMyProOneName, MyCusOne)
OPM_DYNPROP_OBJECT_ENTRY_AUTO(CMyProTwoName, MyCusTwo)
MyCusOne And MyCusTwo area two kind of custom entities.
CMyProOneName And CMyProTwoName area their property.
I found the GetCurrentSelectionSet in IDynamicPropertyNotify2. It contain all kind of custom entities form my define.
But I had define the dynamic property for them each other.
In general, the GetCurrentSelectionSet in IDynamicPropertyNotify2 should contain a kind of class if I switch class in property inspector.
Such as, I select AcDbLine , AcDbCircle, AcDbArc. When I switch AcDbLine class , the GetCurrentSelectionSet in IDynamicPropertyNotify2 contain AcDbLine only.
And It is right if I define one kind of custom entity only. But now I can't switch class and show their property between MyCusOne And MyCusTwo in property inspector.
Solved! Go to Solution.