Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Selection Result Error: selection filter, select object on layer, layer name contains #

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
213 Views, 0 Replies

Selection Result Error: selection filter, select object on layer, layer name contains #

select object on layer, layer name contains # using following code, selection result got error

 

TypedValue[] tvs = new TypedValue[]
{
new TypedValue((int)DxfCode.Operator, "<and"),
new TypedValue((int)DxfCode.LayerName, layerName ), 
new TypedValue((int)DxfCode.Operator, "and>")
};
SelectionFilter filter = new SelectionFilter(tvs);
ObjectId[] objIds;
PromptSelectionResult psr = doc.Editor.SelectAll(filter);

 

please anyone can help

 

thank  you

 

 

 

@Anonymous Topic Title has been edited for better findability by the Community Manager, @Tiana_Y 

0 REPLIES 0

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

Post to forums  

Forma Design Contest


Autodesk Design & Make Report