Our 3D CAD supplier models have been moved to 3Dfindit.com, the new visual search engine for 3D CAD, CAE & BIM models.
You can log in there with your existing account of this site.
The content remains free of charge.
2.3.6.12. NX: Macro
independent placement dialog
2.3.6.12.1. Create NX
Macro for native placing strategy
|
|
---|---|
Prev | Next |
A NX Macro for native placing strategy is created as follows:
Set up working environment: Start Teamcenter, Start NX from Teamcenter, create new empty model, check, that "Assembly mode" is on.
Start Macro recording NX: Tools->Macro-> Run recording...(or Strg+Shift+R)-> Enter Macro name->OK
Record Macro: Assemblies->Components->Add component->Open->(Teamcenter Export menu is opened)->Insert Part number and Revision -> Select part in the result table->OK->(Teamcenter Export menu is closed)->Finish recording here.
Adjust Macro: Open newly created Macro in Text Editor, then replace part number by <<CNS_ITEM_NUMBER>> and revision by <<CNS_ITEM_REV>> everywhere. E.g., if part selected in step 3 is named "002012/A", all "002012" shall be replaced with "<<CNS_ITEM_NUMBER>>" and all "A" (with exclamation mark!) replaced with "<<CNS_ITEM_REV>>" (also with exclamation mark) by Macro.
Use Macro: Move Macro file into the folder %CADENAS_SOFTWARE%\iface\unigraphics\shared\macro; adjust ifugnx.cfg row "placementmacro(nx80,tcActive)" respectively.
E.g. placementmacro(nx80,tcActive)=$CADENAS/iface/unigraphics/shared/macro/myTCmacro.macro for a "myTCmacro.macro" Macro file.