PsMiscTools tools = new PsMiscTools(); PsSelection pseclect = new PsSelection(); PsMatrix psmatrix = new PsMatrix(); long Id; Id = pseclect.PickObject("Select the object to be copied!");
PsTransaction transaction = new PsTransaction();
// The incoming managed object reference must be empty when GetObject is called PsRebarSingle rebarObject = null; Bentley.ProStructures.Concrete.Shape.PsConcreteShape pscon = null; try { if (transaction.GetObject(Id, PsOpenMode.kForWrite, ref rebarObject)) { rebarObject.ModifyRebarColors(0, 10); rebarObject.Color = 10; rebarObject.Diameter = 12;
transaction.GetObject(rebarObject.ConcreteId, PsOpenMode.kForWrite, ref pscon); bool isupdate = false; PsConcrete tcon = pscon.GetConcrete(); isupdate = tcon.removeRebarObject(Id, true);
}
通过上面的方法可以修改钢筋里面的信息数据,但是在PS中显示还是原来的信息;通过PsConcrete删除钢筋返回了true,但是在PS中钢筋并没有被删除。
你好 这个我问一下我们产品经理 如果不能解决的话会给您转到二次开发板块
好的,麻烦了
丁工,
已经协调内部资源尽快给与您回复。
好的,谢谢林老师
林老师,这个什么时候能给回复呀,我们这边很急,卡在这个问题上了。
丁工,不好意思我们这边人员有变动,您看明天上午方便,我们远程碰一下问题,我们这边有开发在