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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

J-Link/Creopyson - Setting a parameter and regenerating changes view

JP_13471738
2-Explorer

J-Link/Creopyson - Setting a parameter and regenerating changes view

Hello forum members,

I am using Creo Parametric 10.0.7.0 together with Creoson and Python to create a (more or less) fluid animation. In the files you can look at my code.

My problem here is that whenever the value for the parameter is set and the regeneration is done the view changes so that the assembly is centered in the middle. Does anyone know how to do something against that?

I'm grateful for every bit of help, thank you.

 

Kind regards

ACCEPTED SOLUTION

Accepted Solutions

Hi,

in the assembly ... add some geometry (e.g. a surface) that creates an envelope for the assembly geometry. Then hide this geometry to make it invisible.


Martin Hanák

View solution in original post

4 REPLIES 4

Hi,

in the assembly ... add some geometry (e.g. a surface) that creates an envelope for the assembly geometry. Then hide this geometry to make it invisible.


Martin Hanák

Thank you very much.

RPN
17-Peridot
17-Peridot
(To:JP_13471738)

After Regen your Model the bounding box may change, this will force the model view to be updated. You need a some geometry which is  always bigger than the rest of model. Now after regen the model will stay with a similar view transformation, because max size or the bbox is not changing.
A surface, created by an extruded rectangle and 3 max values in x y and z will help. This feature place on a layer and blank, now you are good to go. 
Similar to Martins answer😉

JP_13471738
2-Explorer
(To:RPN)

Thank you for your help.

Announcements


Top Tags