.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

selection set filter

1 REPLY 1
SOLVED
Reply
Message 1 of 2
ProfWolfMan
702 Views, 1 Reply

selection set filter

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
1 REPLY 1
Message 2 of 2

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

 

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost