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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Layer Filter By name Not Wokring

smarcus3
5-Regular Member

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
kdirth
20-Turquoise
(To:smarcus3)

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.


There is always more to learn in Creo.
smarcus3
5-Regular Member
(To:kdirth)

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.

kdirth
20-Turquoise
(To:smarcus3)

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.


There is always more to learn in Creo.
smarcus3
5-Regular Member
(To:kdirth)

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. 🙂

FV
17-Peridot
17-Peridot
(To:smarcus3)

workaround is to use two-step rule:

FV_0-1589476315443.png

FV_1-1589476538697.png

 

 

 

 

 

smarcus3
5-Regular Member
(To:FV)

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 !

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
Top Tags