Quantcast
Channel: OpenPlant | AutoPLANT
Viewing all articles
Browse latest Browse all 12277

Wiki Page: how to get the model name (filename) from AutoPlant into the iso using OPIM?

$
0
0
Background how to get the model name (filename) from AutoPlant into the iso using OPIM? Steps to Accomplish 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: If an Access based project is used: (as example) mydsn=Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\ProgramData\Bentley\Plant V8i\Bentley Plant V8i Projects\SAMPLE_METRIC\Projdata\Projdata.mdb; if a SQL project is used with Windows Authentfication, mydsn=Driver={SQL Server};Server=SQL Server name;Database=sql databse name; (as example): mydsn=Driver={SQL Server};Server=EMEA12880;Database=AutoPLANT1; If a user id and password option is used add also the following: Uid=user id;Pwd=password; 00_keytag = DBQUERY ($(mydsn), select keytag from TAG_REG where tag_no='$(LINENUMBER)') # this makes a drawing attribute compID that gets the most common value of the component attribute GUID compId = *(GUID) # This is the query to get the modelname from the project database using compID 00_PipingModel = DBQUERY ($(mydsn), SELECT D.DOC_NAME FROM DOC_REG AS D INNER JOIN RELATIONSHIPINSTANCE AS R1 ON R1.ID1 = D.DOC_ID WHERE R1.ID2='$(compID)' AND R1.RELATIONSHIPTYPE = 3) 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.

Viewing all articles
Browse latest Browse all 12277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>