Method AddBasePointParameter
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
AddBasePointParameter(GeoPoint3)
Makes the block dynamic, where it is not, and gives it a base point parameter, AutoCAD's Base Point parameter as its Block Editor makes one: a base point for the INSERTs of the block apart from its origin. It gives no property.
public void AddBasePointParameter(GeoPoint3 location)
Parameters
locationGeoPoint3The base point, in the block's coordinates.
Remarks
A block given AddBasePointParameter(new GeoPoint3(5, 5, 0)) holds a Base Point at (5, 5). The parameter is
written as AutoCAD saved the one of ACadSharp's base point sample: its point, its element named Base Point, and its
own two points (1011, 1012) nought; one node of the evaluation graph and no edge. The library keeps the block's
entities where they are, as AutoCAD 2021 drew them: an INSERT at (300, 0) of a panel 100 by 50 of a base point at
(20, 10) over x 300 to 400 (plugin v21, 24e-f). A block has one base point parameter, as AutoCAD's Block Editor
gives it.
Exceptions
- ArgumentException
Thrown when a coordinate is not a finite number. Nothing is written then.
- InvalidOperationException
Thrown when the block has a base point parameter already, or cannot be dynamic, as AddLinearParameter(string, string, GeoPoint3, GeoPoint3, double, DxfBlockParameterValueSet) says.
- NotSupportedException
Thrown when the block has a flip parameter, as AddLinearParameter(string, string, GeoPoint3, GeoPoint3, double, DxfBlockParameterValueSet) says. Nothing is written then.