cancel
Showing results for 
Search instead for 
Did you mean: 
Security Alert Log4j Security Vulnerability. Click here to know more.
cancel
Showing results for 
Search instead for 
Did you mean: 

Vb api: how to move a solid?

TheWall
1-Newbie

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


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2
njanho
1-Newbie
(To:TheWall)

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

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!

Announcements