.NET

.NET

Reply
Moderator
1,467 Posts
277 Kudos
Registered: ‎04-09-2008
Post 11 of 13

Re : Editor.SelectAll() to get selection of object IDs not on locked layers

11-05-2013 03:49 PM in reply to: Alfred.NESWADBA

alfred.neswadba wrote:

How do you create layer with comma in the layername? Comma's are not allowed within layernames. Or have you found a way to include a comma I don't know?



Ok! :smileywink: Comma not allowed, but  "#", "$", ".", "@", "[", "]"  are allowed (wild-card characters):


 

 


alfred.neswadba wrote:
I have used a list of blocknames with commas and a length > 2000char for filtering .. always worked. So I guess that will work with layernames too.

EXTNAMES

Maximum length of dictionary key names

Length of dictionary key names


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

*Expert Elite*
9,836 Posts
1,219 Kudos
Registered: ‎06-29-2007
Post 12 of 13

Re : Editor.SelectAll() to get selection of object IDs not on locked layers

11-06-2013 04:43 AM in reply to: Alexander.Rivilis

Hi Alexander,

 

I think I misunderstand things now ...

 

When I do filtering with TypedValue(0,"LAYER1,LAYER2,LAYER3,LAYER4") ... none of the single layernames has more than 255 characters, but as a filterstring in can contain more than 255 characters as far as I know.

So I can collect layernames to one comma-delimited string that is longer than 255 and use it for filtering (as each single layername has less than 255 chars).

And the filtervalue isnot a key-string and does not depend on EXTNAMES as these only specify one single name, not a list of names as a filter string.

 

Am I wrong or did I misunderstand anything?

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Moderator
1,467 Posts
277 Kudos
Registered: ‎04-09-2008
Post 13 of 13

Re : Editor.SelectAll() to get selection of object IDs not on locked layers

11-06-2013 05:11 AM in reply to: Alfred.NESWADBA

alfred.neswadba wrote:

...Am I wrong or did I misunderstand anything?...


I think only Autodesk guys can talk you wrong or not. But I'd like next type of filter:

 

TypedValue[] tvArr = new TypedValue[]
{
    new TypedValue(0, "LINE,LWPOLYLINE,POLYLINE,SPLINE")
    new TypedValue(-4, "<OR")
         new TypedValue(8, "LAYER_1")    
         // ... new TypedValue(8, "LAYER_I")
         new TypedValue(8, "LAYER_N")            
    new TypedValue(-4, "OR>")
}

 

Also if such "LAYER_I" has wild-cards character(s) every character have to be escaped with "`".

 


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и 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
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!