×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Knowledge (con)Fusion

Knowledge (con)Fusion

Knowledge (con)Fusion

(OP)
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 evil! 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)

www.jcb.com

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

RE: Knowledge (con)Fusion

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
WWW.G4SOLUTIONS.NET

RE: Knowledge (con)Fusion

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",
};

 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources