Complete the code to create an offset entity at a specified distance.
offset_entity = sketch.[1](entity, distance)The correct method to create a single offset entity in SolidWorks API is OffsetEntity.
Complete the code to specify the direction of the offset.
offset_entity.Direction = [1]The offset direction to the right is specified by swOffsetDirectionRight.
Fix the error in the code to properly add an offset entity to the sketch.
new_offset = sketch.[1](entity, distance, swOffsetDirection_e.swOffsetDirectionRight)The correct method to add an offset entity is OffsetEntity. Other method names are incorrect and will cause errors.
Fill both blanks to create an offset entity and set its distance property.
offset = sketch.[1](entity, [2]) offset.Distance = distance
The method to create the offset entity is OffsetEntity, and the parameter for the distance is distance.
Fill all three blanks to create an offset entity, set its direction, and update the sketch.
offset = sketch.[1](entity, distance, [2]) sketch.[3]()
Use OffsetEntity to create the offset, swOffsetDirectionRight to set direction, and Rebuild to update the sketch.