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
Hi You,
Thank you for raising your query in Bentley Plant Forum.
From the image, I understand that you want to update the value of Cell Name with Tag Information, while the cell name will remain constant based on the cell being used.
Can you please provide us the reason behind this requirement.
Regards | Swapnil Joshi
Hi Sir
The reason is because I found the model will always show as a name "Cell" in our review model tree, e.g. Navisworks.
but if I give a name to the cell, the cell name will be shown in the model tree, instead of "Cell".
But in this case we have define the cell name manually both in OPM TAG and Element properties. that is double work.
So I wondering if I can add some ECexpression etc within Class Editor, to let the Cell Name = TAG. that will be perfect!
Do you understand?
Answer Verified By: You Quanwu
试了一下SUPPORT_LOCATION, 也是 Notavailable, 下图是元件属性
LOCATION是坐标,getvalue获取不到。再换个别的文本类型的属性。
我想获取的就是这个OpenPlant中放置的支架定位用的编号,如图中的立方块, 在Items属性是这样的,我就是想把这些编号赋值给Cell Name. 这样我在Microstation中也能看到这个编号,
那段代码就是做这个的。select那串代码是为了只修改管架的。如果是要在MS中看到这些属性,直接发布为imodel即可。
i-model有些bug, 好像不完全能带出属性, 我就遇到这种情况,有的带信息,有的不带。非常不真欢i-model
从未遇到过问题。imodel是唯一的带属性跨软件的方法。如果某些元素带某些不带,应该是不带的那些元素的问题。
您那边代码运行没有问题吗?能把cell name都赋上值吗?是不是因为 SUPPORT_NAME 是ECExpressions, 代码不同?
我这里当然是没问题的。也许schema不同,你的support没有support_name这个属性,换一个别的文本类型的、能确认support的其它属性。
刚刚又自带的项目试了一下,除了Support Location块无法赋上cell name,其它的都能。
非常感谢啊!
如果要实现让support location实现我应该怎么做呢,你有没有什么建议?
查看帮助修改相应的getvalue获取不同类型的属性。