You are currently reviewing an older revision of this page.
how to get the model name (filename) from AutoPlant into the iso using OPIM?
Open Windows Explorer.Browse to as example to C:\ProgramData\Bentley\Plant V8i\Bentley Plant V8i Projects\SAMPLE_METRIC\Config\OpenPlant\Isometrics\styles\IFC\ Open the file textnodes.txt.Add the following lines at the end:
mydsn=Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\ProgramData\Bentley\Plant V8i\Bentley Plant V8i Projects\SAMPLE_METRIC\Projdata\Projdata.mdb;
00_keytag = DBQUERY ($(mydsn), select keytag from TAG_REG where tag_no='$(LINENUMBER)')
00_PipingModel=DBQUERY ($(mydsn),SELECT DISTINCT DOC_NAME FROM DOC_REG WHERE DOC_ID IN (Select DISTINCT ID1 FROM RELATIONSHIPINSTANCE WHERE RELATIONSHIPTYPE =3 AND ID2 IN (Select ID2 FROM RELATIONSHIPINSTANCE WHERE RELATIONSHIPTYPE=2 AND ID1= '$(00_keytag)')))
Save and close the file.In the same location open the file node2da.txt.Add at the end of that file: 65(or next available),00_PipingModel
Save and close the file.Run an iso in the project.In the resulting Iso, go to menu IsoExtractor>Text Node Editor.Find text node 65, select it, right mouse click, select Place Text Node.Place the node on any wanted location and close the Text Node Editor.
Run the iso again and see the Model name on the iso.
NOTE: When a linenumber is drawn in multiple models, it will give you more model names as result.