cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Vb api: how to move a solid?

Highlighted
Level 1

Vb api: how to move a solid?

Hi,

 

I'm trying to move a solid with vba and after every single moving step i want to do a collision check with vba.

For better understanding, i made a picture to show the situation.

hebebuehne.jpg

Is this possible? Can anyone help me or give me some examples?

 

Thx

Tags (3)
2 REPLIES 2

Re: Vb api: how to move a solid?

I have been trying to do it since december 2013 !
Still waiting for an answer ....

Re: Vb api: how to move a solid?

ang.jpg

The easy way to move solid part, like in you picture:

1) create assembly with Angel Offset constraint, between two part.

2) Using Relations, map this constraint/dimension to the parameter (d0 = pAngel)

3) Now in VB API you can change the value of the pAngel parameter. In this case the part will be moved after regeneration.

About a collision check: jlinkug.pdf

Page 257: Geometry Evaluation -> Interference

Example Code

The sample code in the file UsrInterference.java located at

<creo_jlink_loadpoint>/jlink_appls/jlinkexamples finds the

interference in an assembly, highlights the interfering surfaces, and highlights

calculates the interference volume.

Good luck!