.NET

.NET

Reply
Valued Contributor
michael.vanhoose
Posts: 71
Registered: ‎09-26-2007
Message 1 of 3 (170 Views)
Accepted Solution

Can you do a selection set based on Extended Dictionary on a Entity?

170 Views, 2 Replies
01-16-2013 07:46 AM

'' Get the current document editor

Dim acDocEd AsEditor = Application.DocumentManager.MdiActiveDocument.Editor

 

'' Create a TypedValue array to define the filter criteriaDim acTypValAr(0) AsTypedValue

acTypValAr.SetValue(

NewTypedValue(DxfCode.?????????, _

 

"???"), 0)

 

'' Assign the filter criteria to a SelectionFilter objectDim acSelFtr As SelectionFilter = NewSelectionFilter(acTypValAr)

 

'' Request for objects to be selected in the drawing areaDim acSSPrompt AsPromptSelectionResult

acSSPrompt = acDocEd.GetSelection(acSelFtr)

'' If the prompt status is OK, objects were selectedIf acSSPrompt.Status = PromptStatus.OK ThenDim acSSet AsSelectionSet = acSSPrompt.Value

Application.ShowAlertDialog(

"Number of objects selected: "& _

acSSet.Count.ToString())

Else

Application.ShowAlertDialog(

"Number of objects selected: 0")

 

EndIf

Can you do a selection set based on Extended Dictionary on a Entity?

 

No. There is no criteria to filter selection set with Extension Dictionary.

Moderator
Alexander.Rivilis
Posts: 1,450
Registered: ‎04-09-2008
Message 2 of 3 (163 Views)

Re: Can you do a selection set based on Extended Dictionary on a Entity?

01-16-2013 09:03 AM in reply to: michael.vanhoose

Can you do a selection set based on Extended Dictionary on a Entity?

 

No. There is no criteria to filter selection set with Extension Dictionary.


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Valued Contributor
michael.vanhoose
Posts: 71
Registered: ‎09-26-2007
Message 3 of 3 (148 Views)

Re: Can you do a selection set based on Extended Dictionary on a Entity?

01-16-2013 11:14 AM in reply to: Alexander.Rivilis

Thanks for the reply

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.