.NET

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

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

159 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

Moderator
Alexander.Rivilis
Posts: 1,389
Registered: ‎04-09-2008
Message 2 of 3 (152 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 (137 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community