.NET

Reply
Valued Contributor
ProfWolfMan
Posts: 86
Registered: ‎04-21-2010
Message 1 of 2 (410 Views)
Accepted Solution

selection set filter

410 Views, 1 Replies
05-23-2011 01:34 AM

Hi,

 

the following code filter all lines which are in the layer "0" and lineweight is 0.35.

but it does not. my selection set is empty. 

----------------------------------------------------------------------------------------------------------

Dim typVal(2) As TypedValue 

 typVal(0) = New TypedValue(DxfCode.Start, "LINE") 

 typVal(1) = New TypedValue(DxfCode.LayerName, layName)

typVal(2) = New TypedValue(DxfCode.LineWeight, Convert.ToInt16(0.35))

----------------------------------------------------------------------------------------------------------

Dim sf As SelectionFilter = New SelectionFilter(typVal)

Dim ss As SelectionSet = ed.SelectAll(sf).Value

 

where i am wrong?

 

 

Thanks & Regards,
G
typVal(2) = New TypedValue(DxfCode.LineWeight, Convert.ToInt16(LineWeight.LineWeight035))

 

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

Re: selection set filter

05-23-2011 05:15 AM in reply to: ProfWolfMan
typVal(2) = New TypedValue(DxfCode.LineWeight, Convert.ToInt16(LineWeight.LineWeight035))

 


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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.