Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API to add perpendicular distance between sketch entities

1 REPLY 1
SOLVED
Reply
Message 1 of 2
ravirajk
1009 Views, 1 Reply

API to add perpendicular distance between sketch entities

Hello,

There is an API AddTwoPointDistance() to add the distane(horizontal, vertical or aligned) between two sketch points.

But I want to add perpendicular distance constraint between a sketch point and a sketch line, please tell me what should I do to solve this problem.

 

Thanks in advance.

1 REPLY 1
Message 2 of 2

You can use Addoffset method for this.

 

DimensionConstraints.AddOffset( Line As SketchLine, Entity As SketchEntity, TextPoint As Point2d, LinearDiameter As Boolean, [Driven] As Boolean ) As OffsetDimConstraint

 

Entity

Input sketch entity. This must be either a or SketchPoint object. If creating a linear diameter dimension and Entity is a SketchLine, then Entity is used as the centerline. If Entity is a SketchPoint, then Line is used as the centerline.

 

 

 

this is from the API Help

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report