Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Knowledge (con)Fusion 1

Status
Not open for further replies.

SiW979

Mechanical
Nov 16, 2007
804
Hello One and All!

We are at last looking at implementing check mate throughout our group and being responsible for what checks we add, it is down to me to collate and test the first profiles. Now usefully NX does come with a lot of OOTB checks which we can be added to a profile with the minimum, of fuss however others need either editing or writing from scratch. One of the ones I want to implement is our company standard for layer settings as keeping these in order falls under what I call basic good house keeping, however I don't (yet) know how to write KF and my tentative approach to compliling my own check has resulted in high blood pressure a nervous tick and the distinct possibility of KF rage %-(! so I was wondering if anyone out there would have a checker written for layer settings that I could use and simply change the layer numbers around to suit our standards. Any help would be greatly appreciated.

Best regards

Simon (NX4.0.4.2 MP10 - TCEng 9.1.3.6.c)


Life shouldn't be measured by the number of breaths you take, but by the number of times when it's taken away...
 
Replies continue below

Recommended for you

Hi Simon,
I am out Of Office,will send you one small program for this to change the layer settings by tommorow.



Thanks,

Srinivas Kumar.T

Head - Technical
G4 Solutions
Hyderabd ,India
 
If you are checking that specified geometry lies on given ranges of layers the key is to set this attribute:

# "entity_type1, [entity_type2...] | layer_range"
(list) entity_layer_map: {
"SOLID_BODY, SOLID, SHEET_BODY | 1-50",
"_CURVE | 51-100",
"SKETCH, LINE, ARC, CONIC, SPLINE, DATUMS, CSYS | 101-200"
};

The available entity types are:
ARC, BOUNDARY, BOUNDARY_CONDITION, CAM, CATEGORY, COMPONENT, COMPOUND_FACE, CONIC, CSYS, DATUM, DATUMS, DATUM_AXIS, DATUM_PLANE, DIMENSION, DRAFTING_ENTITY, DRAWING, DRAW_VIEW, FACETED_BODY, FOREIGN_ENTITY, GEOM_GRP, LABEL, LINE, LOAD, MEMBER_VIEW, MESH, MODEL_VIEW, NOTE, NOT_MODEL_ASSOC_GEOMETRY, PARTS_LIST, PATTERN, PATTERN_POINTS, PLANE, PRODUCT_DEFINITION, REFERENCESET, SHEET_BODY, SKETCH, SOLID, SOLID_BODY, SOLID_COLLECT, SOLID_SECTION, SOLID_SILHOUETTE, SPLINE, SPREADSHEET, SYMBOL, TABULAR_NOTE, TOLERANCE_FEATURE, UDO, VIEW, VIEW_DEPENDENT_EDIT, VIEW_DEPENDENT_GEOMETRY, _CURVE, _GROUP, _POINT

If you are checking for categories and associated layers, the key is to set this attribute:

# "Category_name | layer_range"
(list) category_layer_map_init: {
"MASTER_MODEL | 01",
"SOLIDS | 01-14",
"LINKED_OBJECTS | 15-20",
"SKETCHES | 21-40",
"CURVES | 41-60",
"DATUMS | 61-80",
"SHEETS | 81-99",
"BSC_ASSY | 100",
"ASSEMBLY | 101-199",
"FORMATS | 200-210",
"DRAFT | 211-220",
"MECH | 221-230",
"CAE | 231-256",
};

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor