Feature Rotation Exception

المشرف العام

Administrator
طاقم الإدارة
I am getting an error when I try to change the value of a feature's Rotation Value.I have a schematic feature that I would like to rotate by changing the field's ROTATION value, but everytime I try to set the new value I get this error."Error HRESULT E_FAIL has been returned from a call to a COM component"

Here is the part of the code where I set the value

ISchematicRelationController controller = new SchematicRelationControllerClass();var parentContainer = controller.FindParent(duct);if (parentContainer == null) { var rotIdx = parentContainer.Fields.FindField("ROTATION"); var idx = duct.SchematicElement.Fields.FindField("ROTATION"); if (rotIdx > -1) { Duct.SchematicElement.Value[rotIdx] = 45; parentContainer.Value[rotIdx] = 65; ------> this is where the exception occurs }

أكثر...
 
أعلى