Good afternoon, I have been grinding my teeth over this: In a powerpid drawing, I want to change the Document.Name property. Default it gives me the name of the drawing without the extention. Witch is fine for most projects. But for one of my customers I need to separate the last part of the filename also. They have a file format as follows: - - - .dgn. For the Document.name property I need to omit the "- " part also. So I created an override of the Name property and added a Caculated ECProperty. The expression I use is as follows: >>System.String.Substring(this.FILE_NAME,0,13) >System.String.Substring(this.FILE_NAME,0,System.String.LastIndexOf(this.FILE_NAME,"-"))<< Bad Idea, I suddenly get the error in PowerPid that the NAME field is read only and the Document form won't open anymore. Can anyone direct me to the right syntax? I have been searching all day but came up empty. Kind regards.
↧