Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Layer Category

Status
Not open for further replies.

geo12

Mechanical
May 27, 2003
99
0
0
CA
Is there a program out there to create Layer categories in whole without doing one by one?
For example:
1-15 Solid Geometry
16-20 Linked Objects
21-40 Sketches
41-60 Curves
61-80 Datums
81-100 Sheets etc....

Thanks
 
Replies continue below

Recommended for you

You can select multiple layers to include as a group. Also, perhaps consider saving an empty part file with these changes (and any other required options) to open as a startup part file.

--
Bill
 
Have you tried doing this with a macro. Then use the macro to create the categories in parts that do not have them set up. That might help others create the categories too in case you don't use a start part as wmalan suggested.

you can use the following keyboard shortcuts.
ctrl+shift+r Record macro
ctrl+shift+p Play macro

Michael
[ponder]
 
You either need to learn and write your own GRIP program OR find someone to do it for you for free or a price.
What is a program like this worth to you and your company?


"Wildfires are dangerous, hard to control, and economically catastrophic."
"Fixed in the next release" should replace "Product First" as the PTC slogan.

Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
 
Geo,
As an added thought or something to consider... Is it intended for the 'model' and 'drawing' layering categories to be the same? The company I work for have seperate layering strategies and standards for each. Do you want the ability to add or modify the layers on the fly, or simply a 'standard' layering convention to use for a particular customer?
Might I suggest supplying a complete list of layering categories (along with their respective layers) for both drawings and models, and perhaps the grip god will induce a bored code slinger with the inspiration to help you out. A list of the platforms used by your company would also be helpful (unix, windoze, etc.) since they have to be compiled on the machine platform they will be run on. =)

SS
 
This one is really simple, if you have a grip license you can compile and run it. It doesn't do any error checking, but it would not be difficult to add.

Code:
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$ PROGRAM PURPOSE: CREATE DEFAULT LAYER CATEGORIES
$$ DESCRIPTION
$$ 9-07-2005
$$ SUBROUTINES USED: NONE

$$CAT/'name'[,layer list][,CAT,'cat list'][,DESCR,'description'][,IFERR,label:]
CAT/'SOLID_GEOMETRY',1..15
CAT/'LINKED_OBJECTS',16..20
CAT/'SKETCHES',21..40
CAT/'CURVES',41..60
CAT/'DATUMS',61..80
CAT/'SHEETS',81..100

HALT
 
Our company has done this with a macro, it's propbably the easiest way if you aren't familiar with program writing. Or if you do not have grip.
 
Status
Not open for further replies.
Back
Top