Skip to main content
1-Visitor
March 16, 2012
Question

layers - a popular topic this week.

  • March 16, 2012
  • 26 replies
  • 12087 views
Greetings,



I have a good reason to finally learn what "Isolate" layers are and how they
work. I am looking for a layers tutorial or overview. I remember the last
time I went to the World Event, 2007, Glen Beer gave a terrific seminar on
this. I left there full of ambition to tame my layers, but never found a
round tuit. Until now.



Glen, are you out there? Anybody else know this crazy layer thing and can
point me to some learnin'?



Thanks,



-Nate

26 replies

12-Amethyst
March 21, 2012

The unfortunate part of any bit of software, whether ModelCheck or the stuff you have created, is that users simply cannot be forced to use it 100% of the time. Short of using actual force (I find electric cattle prods work pretty well) some users are simply stubborn enough or just don't care enough to do it right. No software will ever force then to care. Even though PDMLink can be set up to reject the check in of any objects with ModelCheck errors, I've yet to see that implemented. Too much fear of necessary exceptions.


That's one of the ways that Layer Rules really shine. They're built right into the start parts, so users have to go out of their way to remove or alter them. The type of user that can't be bothered with ModelCheck is less likely to go removing layer rules simply out of spite. The drawback, and it's one I've had to deal with a lot in the past, is old parts created prior to implementing layer rules. That's where ModelCheck really comes into play. If the start parts have the layer rules (and all the other junk like parameters or relations), ModelCheck becomes nearly an afterthought, except for modeling practices (late rounds, geom checks, buried features, etc.)


IMO, it really should be a two-pronged approach. It is vital that all aspects of start parts be set up correctly. One that hurdle is crossed, it's only legacy data that we have to worry about. (Or data created by outside vendors.)


I know Tool Kit is extremely powerful, but haven't had much opportunity to play with it. From what I've seen, it can accomplish much of what ModelCheck does with layers, views (and then some), parameters, etc, but without the need to run it over and over, correcting stuff incrementally the way ModelCheck does.


Now, if PTC would simply create a way to reapply the start part as a template to an existing file, all our troubles with this stuff would be reduced by a significant amount!

In Reply to alfonso medina:


We have Model check running to keep our quality up. However I found the
checking to be a little S%#$@y and regardless of warning or errors people
will not fix them unless I or another admin is behind them the whole way.
But model check is not too bad. we check for layers, parameters, units,
views out of place, formats yeah the whole shavang. its just not good
enough. I already investigated into automating some tasks and its possible.
But jlink and tool kit are so much better and versatile.
1-Visitor
March 21, 2012
Don wins for the best sentence of this whole topic. I think this is an
enhancement that is truly needed. PTC if you are listening.



Ditto what Don wrote below.



"Now, if PTC would simply create a way to reapply the start part as a
template to an existing file, all our troubles with this stuff would be
reduced by a significant amount!"



Just like replacing a format on a drawing. Replace the start part or start
assembly would be awesome.



Regards,

Ron Rich


21-Topaz II
March 21, 2012
"The layers I usually use are mostly functional, not by geometry type.

Why bother automatically putting curves on a curves layer? When I want
to do some such I can just search and get them."



My goal is to get everything that can be controlled by a layer on a
layer. This gives me ultimate control over what is displayed. I leave
the global display toggles for planes, points, etc. on and use layers to
control what I see. By gathering everything on a layer I can then hide
all layers and everything goes away. Some things (curves, surfaces,
etc.) don't have built ion controls, so the only way to control them is
by layers.



The real beauty then is doing just what you said, gathering a group of
items for a functional subset on a dedicated layer so I can toggle that
one and only those items display. So, maybe I have a series of points,
surfaces and curves that define the split line in my part. I create a
layer called 'split_line', but those items on it hide all the other
layers and isolate the 'split_line' layer and that's all I see.



This relies on an understanding of how the three states work. Unhide is
the default state, things are unhidden by default. If you hide them,
that trumps unhide and they go away. If you isolate, however, that
trumps unhide and they show up again. So, if you place things on more
than one layer with conflicting display states, you can predict what the
result will be. Using hide / unhide only, you can show all and hide
what you don't want. Using hide / isolate only you can hide all and
control what you want to see. There are some other nuances to the three
states (and the visibility hierarchy comes into play as well), but
that's the basics.



I prefer to get rid of the clutter, so I gather everything on default
layers, hide them all and then create target layers of subsets of
geometry that I need to see and isolate them as needed. I never use
unhide. I have users that would rather see it all and hide what's in
the way. For them, setting all to unhidden and hiding as needed works
better. They never touch isolate.



Doug Schaefer
21-Topaz II
March 21, 2012
If you have a start assy with your default rule based layers in it, it's
easy:



1. Create a new, temporary assy based on your start assy.
2. Add in the legacy or vendor parts or assemblies that need the
layers updated.
3. Remove any layers from these parts or assemblies.
4. Open the layer dialog and select all your default layers.
5. Select the layer menu and then extend rules to add the rule
based layers to your legacy & vendor models.
6. Done. Discard the temp assy and add your parts / assemblies back
into your main database.



It almost takes longer to type it out than to do it.



Oh, (shameless plug alert) and if you're hiring out CAD services (vs.
models from component suppliers) and your vendor isn't using your start
parts and layer standards, you need a new vendor. We would take all
your internal standard files and implement them into our system to make
the data delivered to you indistinguishable for that which is created
internally.



Doug Schaefer
1-Visitor
March 21, 2012

Please do a write up on this.



I have many old parts with messed up layers and would be interested in your method.

In Reply to alfonso medina:


So how do you guys feel about layer rules? Basically you go to a layer and
in its properties you can set up a search rule where it can find certain
items and put them in the layer. That can also be set to "associative"
which really means automatic. If you set it to automatic, then any new
plane goes into the plane folder, and any new feature named for example
"cool_feature_XX" could also be automagically pulled into a specific layer.

My start parts have their layers set to hidden by default. For any older
part or badly imported OTS part I made a map key to create the layers and
set them up with the rules. But then this took a few too many seconds. So I
wrote a Jlink up to not only fix the layers but also create views and check
parameters and remove un used ones. The jlink version runs probably 20 to
50 times faster. Setting rules tends to be the slow part. The views are
created in the blink of an eye and same for parameter checking.

My next step is to make this a batch script and just fix everything once
and for all. I'm tired of opening a part and having to click a thousand
times to get rid of the mess of planes and lines and points and coordinate
systems and notes and surfaces and the kitchen sink. Just tired of it.
Maybe I'll post a write up. I'll post the source code in a few. Its a
modification of some other jlink stuff I found on the internets.

regards,

Alfonso


1-Visitor
March 22, 2012
Alphonso, does Jlink have functions equilivant to using the find dialog? The find dialog has a save query operation, which creates ruled layers that are associative by default.

Glenn Beer