Transforming arc, line, circle, point
Posted: 12 Oct 2013, 22:56
I am evaluating CADImport to import and use geometries in a DXF or DWG file. As part of what I am doing I need to both transform the entities CADArc, CADLine CADPoint and CADLine and rotate them a around a point (usually 0,0).
I am working on rotating an arc and am using the following code:
When I do this it changes the start angle, end angle but the Box property does not change. The box property still reflects the old values before the transform.
How would I rotate and transform all four entities properly?
Also, I looked into CADConverter.iterate but that was very unclear in the documentation. I see that it uses a delegate. It looks to me like you still have to write a sub that does the rotate of transform. I seem to be back where I started...how to rotate or transform?
I am working on rotating an arc and am using the following code:
Code: Select all
Select Case _entityType
Case CADImport.EntityType.Arc
Dim arc As New CADArc
arc = _entity
arc.StartAngle = arc.StartAngle + degrees
arc.EndAngle = arc.EndAngle + degrees
_entity = arc
End Select
How would I rotate and transform all four entities properly?
Also, I looked into CADConverter.iterate but that was very unclear in the documentation. I see that it uses a delegate. It looks to me like you still have to write a sub that does the rotate of transform. I seem to be back where I started...how to rotate or transform?