Define Relation Type
Administrators can define if the created manufacturing data needs to be linked as an attachment in 3DEXPERIENCE or as a specification document. The physical product and the document are linked using the defined relationship type. The new version 1.1 of the json file is available by default.
Recommendation:
Administrators should carefully
consider the relationships to be defined. Once the relationships are defined, it is
recommeded that you do not modify the values since the old relationship value remains even
if a new one is defined.
-
In a text editor, open
manufacturing data/config.jsonfor HDL ormanufacturing data/config-orcad.json. -
Specify values for
idandRelationin the json file.Note:"objectTypes": { "PrintedCircuitBoard": [ { "id" :"STEP", "relation" : "SpecificationDocument" }Where,
idrepresents the name of the available data type being generated.relationrepresents the relation between the physical product and the document. The valid values forrelationareReference DocumentandSpecificationDocument. To add a document as a specification document, specify the value asSpecificationDocument, and to add a document as an attachment, specify the value asReference Document.
Note: Invalid values cause Save with options to fail. An error message is displayed during save if invalid values are used in the json file.In earlier versions of the json file, only the data type to be generated is defined:
"objectTypes": { "PrintedCircuitBoard": [ "STEP", "IPC2581", "IPC356",Note: If the old version of the json file that has only the data type defined without relation, the default relation is taken from the installation setting or site setting -
For overriding the old setting, modify the setting in the installation store
(installation.settings) or site store file (store.settings) in the site folder as
follows:
[Documents] Product2DocumentRelationship = SpecificationDocument|ReferenceDocument
The following is a sample config-orcad.json file:{ "version": "1.1", "generators": { "PDF": { "type": "OrCadPdfGenerator", "configuration": { "instanceMode": false, "createNetBookmarks": true, "createRefDesBookmarks": true, "landscapeOrientation": true, "createPropertiesPdf": false } }, "BOM": { "type": "Script", "configuration": { "scriptFile": "scripts/Bom.js" } }, "STEP": { "type": "Script", "configuration": { "scriptFile": "scripts/Step.js" } }, "IPC2581": { "type": "Script", "configuration": { "scriptFile": "scripts/IPC2581.js" } }, "IPC356": { "type": "Script", "configuration": { "scriptFile": "scripts/IPC356.js" } }, "GERBER": { "type": "Script", "configuration": { "scriptFile": "scripts/Gerber.js" } }, "NCDRILL": { "type": "Script", "configuration": { "scriptFile": "scripts/NcDrill.js" } }, "NCROUTE": { "type": "Script", "configuration": { "scriptFile": "scripts/NcRoute.js" } }, "IDF": { "type": "Script", "configuration": { "scriptFile": "scripts/IDF.js" } }, "PDF-PCB": { "type": "Script", "configuration": { "scriptFile": "scripts/PDF-PCB.js" } }, "MANUAL-SELECTION": { "type": "Script", "configuration": { "scriptFile": "scripts/FileSelection.js" } } }, "objectTypes": { "OrCADDesign": [ ], "PrintedCircuitBoardAssembly": [ { "id": "PDF", "relation": "SpecificationDocument" }, { "id": "MANUAL-SELECTION", "relation": "SpecificationDocument" } ], "PrintedCircuitBoard": [ { "id": "STEP", "relation": "SpecificationDocument" }, { "id": "IPC2581", "relation": "SpecificationDocument" }, { "id": "IPC356", "relation": "Reference Document" }, { "id": "GERBER", "relation": "SpecificationDocument" }, { "id": "NCDRILL", "relation": "Reference Document" }, { "id": "NCROUTE", "relation": "SpecificationDocument" }, { "id": "IDF", "relation": "Reference Document" }, { "id": "PDF-PCB", "relation": "SpecificationDocument" }, { "id": "MANUAL-SELECTION", "relation": "Reference Document" } ] }