SketchRotate + Line

SketchRotate + Line

Anonymous
Not applicable
300 Views
1 Reply
Message 1 of 2

SketchRotate + Line

Anonymous
Not applicable

Hi,

 

i create a Line and then i want it rotate 22° from middelpoint

so it dosent work any solutions or idears ?

Inventor 2012

 

 

Dim dAngel as Double

set dAngel = 22  

Dim oLine As SketchLine

Set oLine = oSketch.SketchLines.AddByTwoPoints(oTransGeom.CreatePoint2d(150, 0), oTransGeom.CreatePoint2d(350, 0))

Call oSketch.RotateSketchObjects(oLine, oTransGeom.CreatePoint2d(0, 0), dAngel)

 

 

thx

Mario

0 Likes
Accepted solutions (1)
301 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

i have it

 

    Call oSketch.RotateSketchObjects(oCollLine, oTransGeom.CreatePoint2d(0, 0), dWinkel, False, False)

 

0 Likes