cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Layer Filter By name Not Wokring

Highlighted
Participant

Layer Filter By name Not Wokring

Good morning everyone.  I'm having serious troubles excluding sketches being added to a layer via rules by name. For this layer I want to add all sketches which don't include the following name *Draft*. When I setup the layer rules as shown, noting is added to the layer:

 

 NotEqual.png

 

If I setup the layer to include based on the name it works as expected. 

 

Equal.png

 

Any thoughts why this is happening when I am excluding based on name? This method works without any issues collecting datums; however, it breaks when working with sketches. 

 

Thanks!

7 REPLIES 7
Highlighted

Re: Layer Filter By name Not Wokring

After giving it a try, it appears that rules are not able to read the default name and excludes it.  Also, unless you set the rules to Associative, items will not be added or removed from the layer based on renaming a feature.  Without Associative checked the rules only check items as they are created.

 

It appears that the only thing that is not working, is the ability of the rules to read the default names and then not considering them for inclusion.  If you name the sketch before sketching it will work.

 

Same results with Axis.


Creo is an endless adventure: Always more to learn.
Highlighted

Re: Layer Filter By name Not Wokring

Agreed. Its just very odd to me that the same logic works as intended for Datum Planes. Very odd...

 

These layers are set to associative FYI.

Highlighted

Re: Layer Filter By name Not Wokring

I think it has to do with CREO not allowing spaces in names.  Sketch feature and several others, however, get away with creating default names with spaces.  CREO can't even follow its own rules.


Creo is an endless adventure: Always more to learn.
Highlighted

Re: Layer Filter By name Not Wokring

Yeah never thought about that until now. Datums get named as DTM1 while sketches have spaces such as Sketch 1. 

 

Follow your own rules CREO. 🙂

Highlighted

Re: Layer Filter By name Not Wokring

workaround is to use two-step rule:

FV_0-1589476315443.png

FV_1-1589476538697.png

 

 

 

 

 

Highlighted

Re: Layer Filter By name Not Wokring

Funny you should say this, I was thinking this way would require the user to regenerate once when adding layers to existing CAD. This is no issue for 'clean' CAD. However, there is always dirty legacy models where regenerating the assembly is like setting off a small nuclear warhead.

 

I do agree this method works was trying to eliminate layers referencing other layers. But I like the approach @FV !

Highlighted

Re: Layer Filter By name Not Wokring

Hi,

it seems to me that the following procedure is a solution of your request.

My model tree:

tree.png

I created LAY0002 using following rule:

L2.png

I created LAY0003 using following rule:

L3.png

Hiding LAY0003 solves your request.


Martin Hanák
Announcements