Create Sketch Dimensions with iLogic

Create Sketch Dimensions with iLogic

Anonymous
Not applicable
869 Views
2 Replies
Message 1 of 3

Create Sketch Dimensions with iLogic

Anonymous
Not applicable

Hello everyone,

 

I wrote an iLogic programm which creates a sketch circle based on inputs i give (diameter, distance centerpoint - yellow horizontal line). My problem is, that the sketch is not fully constrained, because it places the circle just correctly to my inputs but it doesnt create dimensions for it. How can i get iLogic to automatically create those dimensions?

iLogic_problem.PNG

0 Likes
Accepted solutions (1)
870 Views
2 Replies
Replies (2)
Message 2 of 3

Sergio.D.Suárez
Mentor
Mentor

Hi, Could you attach your project so we can update it? Grettings

 


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

Message 3 of 3

Anonymous
Not applicable
Accepted solution

Actually after hours of trying i found it out by myself 10 minutes after posting this thread. It worked with this code:

oDims = Sketch.DimensionConstraints
Dim oDim As DimensionConstraint
oDim = oDims.AddDiameter(Hole, TG.CreatePoint2d(100, 100))

But thanks for your fast reply!