.NET

.NET

Reply
Valued Contributor
71 Posts
2 Kudos
Registered: ‎09-26-2007
Post 1 of 3
Accepted Solution

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

171 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
1,468 Posts
277 Kudos
Registered: ‎04-09-2008
Post 2 of 3

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
71 Posts
2 Kudos
Registered: ‎09-26-2007
Post 3 of 3

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
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!