public IOccLine CreateLine( Transform2DProperty<LengthProperty> point1, Transform2DProperty<LengthProperty> point2 )
Parameters
- point1
- Position of the first point.
- point2
- Position of the second point.
Return Value
Created occurrence.
public IOccLine CreateLine( Transform2DProperty<LengthProperty> point1, Transform2DProperty<LengthProperty> point2 )
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.ObjectInvalidException | The object is in invalid state. Obtain a new one. |
EPLAN.Harness.API.Exceptions.InternalErrorException | Internal error of HpD or HpD API. IMPORTANT: Throwing this exception changes HpD Api's state to Failed. |
EPLAN.Harness.API.Exceptions.ArgumentException | Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property. |
EPLAN.Harness.API.Exceptions.ArgumentNullException | Argument is null. |