Hi Tyler, I can only give a pointer to the solution. it should be something similar to the two textnodes.txt entries shown below. # this make 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 modelName = DBQUERY ($(DSN), 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) Regards, Frank
↧