Hi Gents
I am looking for a method in OPM, when we placed a support location, is possible to catch the support number of the support location to the cell name? e.g. in element properties,
Cell Name = Name as shown the illustrated fig below, can you give some tips how can I make it? I know there maybe some function in class editor, it maybe can add some formula/expression.
I want the parameter "Cell Name" got the name as in OPM support location attribute automatically.
3107.Empty.dgn
Very appreciate for your assist. I will test it. Thanks you very much.
试了一下还是不行,调试时Case Else代码段总是不会执行。
Select Case GetCellProperty(Mycell, "SUPPORT_NAME") Case "NotAvailable" Case Else SetCellProperty Mycell, "CellName", GetCellProperty(Mycell, "NAME") End Select
监视下GetCellProperty(Mycell, "SUPPORT_NAME")返回什么值。这段只是限制只改管架,如果无所谓可以直接setcellproperty。
返回的都是NotAvailable
换一个别的管架特有的属性,或者能从返回值判断出管架的属性。