Translate sketch points in sketch space

Translate sketch points in sketch space

peter.pant
Participant Participant
602 Views
3 Replies
Message 1 of 4

Translate sketch points in sketch space

peter.pant
Participant
Participant

Hello everybody,

 

I am trying to translate sketch points to a particular position in sketch space. My sketch construction plane was defined using three construction points and has an arbitrary position in space. At first, I define my sketch point using the coordinates of an already existing Point3D Object and then I use the modelToSketchSpace method to get the equivalent point on the sketch space. The sketch point has now the desired initial position. From there, I would like to translate it to a specific position in sketch space. When I use sketchPoint.move and a Vector3D describing the desired translation in sketch space as input, the sketch point lands on a third position, different than the intended one. Do you have any idea how to proceed on that?

 

I hope my description is not too messy. Let me know if you need more information on that, and thanks a lot in advance!!

 

    

 

0 Likes
603 Views
3 Replies
Replies (3)
Message 2 of 4

MichaelT_123
Advisor
Advisor

Hello Mr. Somebody,

 

Perhaps..., you are using  Point3D as a geometry of some model's object.

Consider creating an independent copy of the point and then proceed as you have described.

 

Regards

MichaelT

 

 

MichaelT
Message 3 of 4

peter.pant
Participant
Participant

Hi Michael,

 

Thanks for your answer. Yes, that's true, the 3d point is defined using the coordinates of the sketch origin in model space. The problem is how to define the translation vector of the equivalent sketch point so that it represents a specific translation in sketch space and not in model space. 

 

Best Regards,

Peter

0 Likes
Message 4 of 4

MichaelT_123
Advisor
Advisor

Hi Mr PeterPant,

Look at:

returnValue = sketchPoint_var.move(translation)

Observe: 

propertyValue = sketchPoint_var.referencedEntity

 

Regards

MichaelT

MichaelT
0 Likes